What is AVIF?
AVIF is a still image squeezed with the AV1 video codec, and it compresses harder than anything else in wide use - frequently half the size of a JPEG that looks the same. It handles transparency and high dynamic range. Support is good in browsers and patchy everywhere else, which is usually why people convert out of it.
What is PPM?
PPM is a Netpbm image: a tiny text header giving the dimensions, then raw pixel values with no compression whatsoever. Almost nothing displays it, which is rather the point - it is what image-processing code and academic tools emit when they want to be trivially readable.