note 111560 added to function.imagesavealpha
| From: | robinleffmann | Date: | Mon, 04 Mar 2013 15:32:32 +0000 |
| Subject: | note 111560 added to function.imagesavealpha | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193793@lists.php.net to get a copy of this message | ||
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".
----
Server IP: 69.147.83.199
Probable Submitter: 83.180.245.84
----
Manual Page -- http://php.net/manual/en/function.imagesavealpha.php
Edit -- https://master.php.net/note/edit/111560
Del: integrated -- https://master.php.net/note/delete/111560/integrated
Del: useless -- https://master.php.net/note/delete/111560/useless
Del: bad code -- https://master.php.net/note/delete/111560/bad+code
Del: spam -- https://master.php.net/note/delete/111560/spam
Del: non-english -- https://master.php.net/note/delete/111560/non-english
Del: in docs -- https://master.php.net/note/delete/111560/in+docs
Del: other reasons-- https://master.php.net/note/delete/111560
Reject -- https://master.php.net/note/reject/111560
Search -- https://master.php.net/manage/user-notes.php