JPEG Curiosity

Started by ame, January 22, 2014, 11:57:50 AM

Previous topic - Next topic

ame

Hi,

There is a way to get the compression ratio/level of JPEG saved?
Example: on a scale of 1-12 of Photoshop discover with which level has been saved the file. Or a scale from 0 to 1

Stefano

Phil Harvey

Hi Stefano,

ExifTool will report the quality setting in the JPEGDigest for images from some common applications, but it will not calculate it for the general case.

- 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 ($).

ame

Hi Phil,

Thanks for reply.
Supposing that most of the images are saved from Photoshop do you have a CLI example about how to extract this info?

Stefano

Phil Harvey

Hi Stephano,

It's as simple as this:

exiftool -jpegdigest image.jpg

You might want to read up about it in the Extra Tags documentation.

- 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 ($).