gdImageCreateFromGif and gdImageColorExact

[email protected] (Roger Oberholtzer) Fri, 02 May 2008 13:13:46 +0200
Newsgroups php.gd.devel
Message-ID <[email protected]>
If I call gdImageCreateFromGif to open a GIF89a file (as written earlier
with GD), should I be able to call gdImageColorExact to get access to a
color in the color map? Seems that if I do so, gdImageColorExact returns
-1, even though the requested RGB exist in the file's color map. If I
use gdImageColorAllocate the color is defined again in the color map,
resulting in an additional entry for that color. I need to avoid this.

Am I missing something?
-- 
Roger Oberholtzer

OPQ Systems / Ramböll RST

Ramböll Sverige AB
Kapellgränd 7
P.O. Box 4205
SE-102 65 Stockholm, Sweden

Office: Int +46 8-615 60 20
Mobile: Int +46 70-815 1696