Page 1 of 1

How to adjust JPG quality using Image::write() in Magic++

Posted: 2008-11-12T20:43:13-07:00
by Bob-O-Rama
I've obviously missed the memo...
How do you select the compression quality when writing out to JPG when using the Magick++ APIs?

I've noticed that all of the JPGs I'm writing out are using 18:1 compression. No wonder I have more artifacts than the British Museum.

Thanks!

-- Bob

Re: How to adjust JPG quality using Image::write() in Magic++

Posted: 2008-11-12T21:47:53-07:00
by magick
Use quality() to set the image compression (e.g. image.quality(92)).

Re: How to adjust JPG quality using Image::write() in Magic++

Posted: 2008-11-12T22:01:33-07:00
by Bob-O-Rama
That's simply too easy... can you make it really difficult and perplexing? Perhaps requiring several hundred lines of assembler code? :-) I was looking over the Magick++ documentation for a while and must have totally spaced out.

Thanks!!!