This function don't work properly for me on trucolerimages (have not tried yet for other types) it jsut produce a part-grayscale image, and some color get mesed up.I found a workaround here:http://www.phpbuilder.com/columns/cash20030526.php3?page=2[quote]Advanced Image Editing Under the GD LibraryColorizingColorizing images is fairly easy to do. The easiest way to colorize an image is fairly simple to grasp. Create an image of the same dimensions and fill that image with the color you want to change it to. This new image is then placed on top of the older image, giving it a colorized look.<?php function imagecolorize(&$im,&$col,$pct) { $im_w = imagesx($im); $im_h = imagesy($im); $setpixel = imagesetpixel($im,$im_w,0,$col); $index = imagecolorat($im,$im_w,0); $rgb = imagecolorsforindex($im,$index); $r = $rgb["red"]; $g = $rgb["green"]; $b = $rgb["blue"]; $layover = imagecreate($im_w,$im_h); $color = imagecolorallocate($layover,$r,$g,$b); $fill = imagefill($layover,0,0,$color); $merge = imagecopymerge($im,$layover,0,0,0,0,$im_w,$im_h,$pct); imagedestroy($layover); } ?> If we use a blue layover RGB(0,0,255), we get this result:[/quote]if you use black or gray, its not perfekt, but better than nothing ;)