jpeg compression quality value stored in file?

Discussions about image processing and document imaging.
Post Reply
Posts: 8
Joined: Thu Dec 29, 2011 11:08 am

jpeg compression quality value stored in file?

Post by mether » Sun May 19, 2013 8:21 am

The GdPictureImaging.SaveAsJPEG Method can take jpeg compression quality as a parameter, is that value stored in the file and can it be retrieved?

Is there any method (yours or otherwise) to get the approximate compression of any jpeg file?

Thanks for your help!


User avatar
Site Admin
Posts: 5701
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: jpeg compression quality value stored in file?

Post by Loïc » Thu May 30, 2013 12:29 am

Hello Monte,

Unfortunately there is no technique to retrieve the quality settings used to encode lossy jpeg documents. Best way would be to store such information in a private exif tag. Anyway this would have a very limited interest since you will probably never find 2 different encoders producing the same quality/compression level from a simple factor.
I've already read some interesting publications about such *challenge* but I've never found something really convincing.

With best regards,


Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests