Sepia Tone Turning whole image yellow?

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
monsters

Sepia Tone Turning whole image yellow?

Post 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.
monsters

Post 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);
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Post 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
Post Reply