Page 1 of 1

[Solved] Pale results with Quantize

Posted: 2012-10-11T23:09:50-07:00
by Alan Hadley
I am using ImageMagick-6.7.9-Q16 on Windows, the Magickcore interface. I am adding one function at a time to my GUI interface for IM, I am now working on Quantize.

No matter what values I put into the QuantizeInfo structure (Colourspace, Treedepth etc.) the results of Quantize always appear lighter than the original image with less colour saturation too.

Is there a problem with my usage, I am starting with a true colour image, or is there a problem with IM?

Alan

Re: Pale results with Quantize

Posted: 2012-10-16T16:59:16-07:00
by anthony
It is very hard to say, without a small example. Also what versions of IM you are using. and even the commands you are using. As you talk about structures, I gather you are doing this from a programming interface?

Re: Pale results with Quantize

Posted: 2012-10-16T17:29:27-07:00
by glennrp
Looks like some problem with RGB versus sRGB colorspace. Are you writing PNG files?

Re: [Solved] Pale results with Quantize

Posted: 2012-10-18T23:15:14-07:00
by Alan Hadley
Yes, it was a colourspace problem. I was setting the colourspace value of the Image structure to RGB without checking that it did not have a valid value first, and if it had leaving it alone.

Alan