ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: ame on January 22, 2014, 11:57:50 AM

Title: JPEG Curiosity
Post by: ame on January 22, 2014, 11:57:50 AM
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
Title: Re: JPEG Curiosity
Post by: Phil Harvey on January 22, 2014, 12:30:02 PM
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
Title: Re: JPEG Curiosity
Post by: ame on January 23, 2014, 12:19:45 PM
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
Title: Re: JPEG Curiosity
Post by: Phil Harvey on January 23, 2014, 12:58:36 PM
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 (https://exiftool.org/TagNames/Extra.html).

- Phil