Tint effect

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
varghese

Tint effect

Post by varghese »

hi i am working in Imagick version 2.2.2. Tint is not working for the below code. Pleasehelp me to achieve the tint effect
$pmImage = "images/source.jpg";
$vHandle = fopen(trim($pmImage), 'rb');
$vImagickSource = new Imagick();
$vImagickSource->readImageFile($vHandle);
$vSource = $vImagickSource;
$vSource->tintImage("#FF0000",0.3);
$vSource->writeImage("tint.jpg");
$vSource->clear();
Source -> http://picasaweb.google.com/togytvarghe ... 5907956066
Result -> http://picasaweb.google.com/togytvarghe ... 1590632930
expected->http://picasaweb.google.com/togytvarghe ... 1600408290
Post Reply