i have to change image color dynamically using php i used the following code
$imgname = "source.png";
$im = imagecreatefrompng ($imgname);
if($im && imagefilter($im, IMG_FILTER_COLORIZE, 27, 133, 85))
{
echo 'Image successfully shaded as per color.';
imagepng($im, 'Result.png');
imagedestroy($im);
}
else
{
echo 'Image create succesfully.';
}
but when i used it with transparent image it show me large thing border
can we resolve using the GD Lib or image stick any function ???
if you are talking about quality issue or shadow issue then I can be resolve by using
imagesavealphafunction before applying filter.code should be