// With transparent PNG file you can colorize the "positive" items and stand the transparent has it is - Beta code
<?php
header('Content-Type: image/png');
$im = imagecreatefrompng('image.png');
$width = imagesx($im);
$height = imagesy($im);
$imn = imagecreatetruecolor($width, $height);
imagealphablending($imn,false);
$col=imagecolorallocatealpha($imn,255,255,255,127);
imagesavealpha($imn,true);
imagefilledrectangle($imn,0,0,$width,$height,$col);
imagealphablending($imn,true);
imagecopy($imn, $im, 0, 0, 0, 0, $width, $height);
imagefilter($imn, IMG_FILTER_NEGATE);
imagefilter($imn, IMG_FILTER_COLORIZE, 0, 255, 0);
imagepng($imn);
imagedestroy($imn);
?>