Sepia effect with imagick like in photoshop
Posted: 2014-09-06T01:39:14-07:00
I'm converting a image from color to sepia with imagick+php, using the sepiaToneImage function. While the effect is good i would like it be more like the photoshop sepia filter (pictured below). Is this possible and how? I've already tried modulateImage but i couldn't get nere the photoshop effect. As far as i unterstand it, imagick is converting the picture to grayscale and then applies color, ist it possible to convert to sepia without grayscale (as this might be the fix)?
Example picture:

Any help is appreciated.
Example picture:

Code: Select all
$img = new Imagick("test.jpg");
$img->setImageFormat('jpeg');
$img->sepiaToneImage(80);
header("Content-Type: image/jpeg");
echo $img;