Opened 21 years ago

Last modified 21 years ago

#407 closed defect (fixed)

GIF Transparency not always recognised.

Reported by: warmerdam Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:


GDAL does not seem to recognise the transparent color in the attached gif
file even though GD does seem to handle it properly.

Attachments (1)

tr.gif (7.0 KB ) - added by warmerdam 21 years ago.
Partially transparent gif file.

Download all attachments as: .zip

Change History (2)

by warmerdam, 21 years ago

Attachment: tr.gif added

Partially transparent gif file.

comment:1 by warmerdam, 21 years ago

It seems that GD was assuming that the background should be treated as 
transparent if no specific transparent color was given in an extension block.
I have modified the driver to report the "SBackgroundColor" as NODATA but
not to alter the trasnparency of the color table entry.  Also modified MapServer
to recognise NODATA settings for greyscale and colormapped single band input
rasters (not going through scaling). 

Note: See TracTickets for help on using tickets.