Opened 21 years ago

Last modified 13 years ago

#397 closed defect

Color problems when using raster symbols and 8 bits PNG — at Initial Version

Reported by: dmorissette Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: 4.1
Severity: normal Keywords:
Cc: sfournier@…, pspencer@…, dmartin@…, sscott@…

Description

We have noticed a problem with MapServer V4.0 when drawing raster symbols on a
map and using 8 bits PNG output.  Sometimes the color of the raster symbol will
change.

In our specific case, we were using a png symbol that contained red color.  
- If the rest of the map also contained some red elsewhere (in the roads layer
for instance) then the symbol was displayed in red correctly
- If there was no red color anywhere else in the map then the symbol was drawn
in black instead of red.

The above was happening when using 8 bits PNG output.  Switching to 24 bits PNG
or JPEG output resolves the issue.  Sounds very much like a color table issue.

Please keep in mind that this happens with raster symbols, not vector symbols.

Unfortunately we don't have a simple reproduceable test case for this.  If we
can build one then we'll attach it.

Change History (0)

Note: See TracTickets for help on using tickets.