Re: Identify -format "%Q" not working

[email protected] Mon, 8 Dec 2008 09:25:50 -0800
Newsgroups gmane.comp.video.image-magick.bugs
Message-ID <[email protected]>
> Please find attached the JPG image I use

The compression quality for metadata.jpg cannot be computed exactly
so it is not used. Previously we used an approximation but that caused
problems with some images.  For example, some images give an approximate
compression quality of 1 which returns a crappy image when we used a
command like this:

  convert image.jpg new.jpg

Here new.jpg was saved with a compression quality of 1.  By not using
any compression quality that is approximate we set the quality to 0
which is undefined and on subsequent writes it uses the default quality
of 85.  Or you can set the compression quality yourself with -quality:

  convert metadata.jpg -quality 92 new.jpg

Note, a great majority of JPEG images return an exact compression quality.
:wq