Page 1 of 1

Sepia Tone Turning whole image yellow?

Posted: 2006-12-11T10:55:34-07:00
by monsters
Hi,

I'm trying to create sepia toned images, and am using this line

MagickSepiaToneImage($sourceWand,0);

But my image is coming out almost entirely yellow... with only the brightest points remaining. The value i use as paramater 2 seems to have no effect whatsoever..

The docs state that the first param. should be an Image, not an ImageWand, I dont know if this is important, or an error in the documentation...

Any help appreciated.

Posted: 2006-12-12T09:33:35-07:00
by monsters
well, there you go,

the docs suggest a level of 80 is a good starting place, my experience is that a starting of 50000 is a good starting point, go figure.

eg:
MagickSepiaToneImage($newsource2,50000);

Posted: 2006-12-12T10:41:08-07:00
by el_supremo
The MagickWand source code says that "80% is a good starting point" and this means 80% of QuantumRange. If 50000 is giving you a good result that would make sense if you are using a Q16 version of IM because 80% of the Q16 QuantumRange is 52428.

Pete