JPEG Quality Settings

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
quickie
Posts: 1
Joined: 2011-04-06T08:42:55-07:00
Authentication code: 8675308

JPEG Quality Settings

Post by quickie »

Hi.

I've saved a 6.82MB jpeg using the default (92%) setting (ie no -quality setting provided by me) and got a 6.08MB file, which is about what I'd expect. I then tested the same original file with a write using a quality setting -quality 92%%. This time I got a file size of 4.2MB. That's a 2MB difference. Where did the 2 megs go when I used a quality setting rather than leaving it up to IM?


Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: JPEG Quality Settings

Post by fmw42 »

In writing jpg, IM tries to find the input quality and use that if it can otherwise it uses the default 92. So IM found some input quality and used that when you did not specify 92.

see -quality http://www.imagemagick.org/script/comma ... hp#quality

"The default is to use the estimate quality of your input image otherwise 92."
Post Reply