note 111560 deleted from function.imagesavealpha by danbrown

From: Date: Mon, 04 Mar 2013 17:38:25 +0000
Subject: note 111560 deleted from function.imagesavealpha by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193795@lists.php.net to get a copy of this message
Note Submitter: robin leffmann ---- Contrary to the example code provided for this function, if you are manipulating an image with an alpha channel that you want to maintain, you have to turn image alpha blending off BEFORE doing an operations on the image, not afterwards as the example instructs. If you do it afterwards like in the example, all alpha channel data will be discarded and leave you with an image imposed on a black background instead of "transparency".

« previous php.notes (#193795) next »