How to determine if a lossless image was a jpeg?
Posted: 2019-02-12T05:16:45-07:00
This isn't im-specific, but I hope this can be done with some im magic or at least some folks can help otherwise:
I'm processing lossless images (png, tif, lossless webp) and am looking for a way to determine if it actually was a lossless format (i.e. jpeg most of the time) once. Visually, this is mostly obvious by looking for jpeg blocky artifacts or wavelet smoothing like in jpeg2k. But how to autmate it?
One idea is to compress the image as jpeg-lossy and then compare some metrics => if it was jpeg already once before, metrics should be very close?
Thanks for any hints!
I'm processing lossless images (png, tif, lossless webp) and am looking for a way to determine if it actually was a lossless format (i.e. jpeg most of the time) once. Visually, this is mostly obvious by looking for jpeg blocky artifacts or wavelet smoothing like in jpeg2k. But how to autmate it?
One idea is to compress the image as jpeg-lossy and then compare some metrics => if it was jpeg already once before, metrics should be very close?
Thanks for any hints!