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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

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/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Charlie_t


bugmenot

#5
Phil's suggestion about checking the JpegDigest value is really useful. And if you're working with large images and need to compress them without losing quality, you can also use online image compressor tool.

Edit: PH removed possibly commercial link
https://discorduserinfo.pro/