Hey, having some problems trying to maintain transparency in png when I create a sketch from it, can anyone work on this? any help would be great, here is what i am doing now:
$fileName= "../js/ajaxupload/tees/".$fileName; list($width, $height) = getimagesize($fileName); $newwidth = 257; $newheight = 197; $thumb = imagecreatetruecolor($newwidth, $newheight); imagealphablending($thumb, true); $source = imagecreatefrompng($fileName); imagealphablending($source, true); imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); imagesavealpha($thumb, true); imagepng($thumb,$newFilename);
php transparency png
BastardPrince Nov 23 '08 at 22:59 2008-11-23 22:59
source share