Compressed/original photo

Started by Charlie_t, October 19, 2022, 05:57:32 PM

Previous topic - Next topic

Charlie_t

Hello,
can I find out in the exiftool if the photo was compressed/or if it's the original?
For example the original would be 3000x4000 15 MB vs. 3000x4000 6 MB as a compressed version.

Thank you

StarGeek

No.  Exiftool only deals with the metadata, not the actual image data.

I'm not sure if there is any practical way to easily tell which file might be original.  You could load a jpg and resave it with the highest/best quality level and could end up with an image that has a larger file size due to all the re-compression artifacts introduced.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Charlie_t


Phil Harvey

You could look at the JpegDigest value reported by ExifTool.  This should be the same for all originals from a given device written at the same quality, but will change if the image is recompressed.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Charlie_t