Opened 15 years ago

Last modified 15 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:
Cc:

Description

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 15 years ago.
Partially transparent gif file.

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by warmerdam

Attachment: tr.gif added

Partially transparent gif file.

comment:1 Changed 15 years ago by warmerdam

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.