note 103995 added to function.imagecreatefrompng

From: Date: Mon, 16 May 2011 09:33:26 +0000
Subject: note 103995 added to function.imagecreatefrompng
Groups: php.notes 
Request: Send a blank email to php-notes+get-179752@lists.php.net to get a copy of this message
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); ---- Server IP: 62.2.182.223 Probable Submitter: 62.12.175.170 ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatefrompng.php Edit -- https://master.php.net/note/edit/103995 Del: integrated -- https://master.php.net/note/delete/103995/integrated Del: useless -- https://master.php.net/note/delete/103995/useless Del: bad code -- https://master.php.net/note/delete/103995/bad+code Del: spam -- https://master.php.net/note/delete/103995/spam Del: non-english -- https://master.php.net/note/delete/103995/non-english Del: in docs -- https://master.php.net/note/delete/103995/in+docs Del: other reasons-- https://master.php.net/note/delete/103995 Reject -- https://master.php.net/note/reject/103995 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179752) next »