Re: [GD-DEVEL] Newbie transparent gif question- possibly solved.
| From: | Pierre Joye | Date: | Fri, 02 May 2008 12:29:03 +0000 |
| Subject: | Re: [GD-DEVEL] Newbie transparent gif question- possibly solved. | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-425@lists.php.net to get a copy of this message | ||
On Fri, May 2, 2008 at 2:25 PM, Roger Oberholtzer <roger@opq.se> wrote:
> OK. But that is how it looks. If an image has the transparent color more
> than once in the color map,
It does not use the color value but the color index. An index is
unique in the palette (from 0 to 255).
> and gdImageColorTransparent is called with
> anything other than the first in the color map, you do not get a
> transparent image. There may be more at play here, but it seems I can
> manipulate this in a predictable manner. The change to my application
> was minor, but I now seem to get transparent gifs as expected. I looked
> a the transparency test program in the source: it is for true color
> images. I did not see a transparency test program for colors as I am
> using them. Maybe it is not a program on it's own. I am happy to explore
> more as I would like to know that my code is correct and not hiding some
> stupid bug on my part.
I will create a small example code later today, it may help.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org