note 20430 rejected from function.imagecolortransparent by didou
| From: | didou@php.net | Date: | Thu, 29 May 2003 20:08:39 +0000 |
| Subject: | note 20430 rejected from function.imagecolortransparent by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49280@lists.php.net to get a copy of this message | ||
Note Submitter: leif@harmsen.net
----
ImageColorTransparent() does not work on true color images. If it did, it would be very handy for
applying masks. A workaround is to use imagetruecolortopalette then use ImageColorTransparent on
your mask. Unfortunately imagetruecolortopalette is really bad at picking colours, so you have to
fix them with a combination of imagecolorclosest and imagecolorset. If anyone knows a better way
let me know!