note 103995 deleted from function.imagecreatefrompng by danbrown

From: Date: Mon, 16 May 2011 16:09:06 +0000
Subject: note 103995 deleted from function.imagecreatefrompng by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179764@lists.php.net to get a copy of this message
Note Submitter: dragon dot dionysius at gmail dot com ---- transparancy problem suggested by "admin at wdfa dot co dot uk" didn't worked in my case but i was able to load a png with alpha channel following: $backgroundimage = 'resource/googleMarker.png'; $image = imagecreatefrompng($backgroundimage); $color_transparency = imagecolorallocatealpha($image, 0, 0, 0, 127); imagefill($image, 0, 0, $color_transparency); imageSaveAlpha($image, true); my output was then: header('Content-type: image/png'); imagepng($image); imagedestroy($image);

« previous php.notes (#179764) next »