Opened 16 years ago
Closed 16 years ago
#2590 closed defect (invalid)
[AGG] 8bit AGG/PNG not transparent
Reported by: | jlacroix | Owned by: | tbonfort |
---|---|---|---|
Priority: | normal | Milestone: | 5.2 release |
Component: | AGG | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | |
Cc: | sdlime, dmorissette |
Description (last modified by )
When using AGG output format in 8bit, the TRANSPARENT TRUE option is not working. The background color is simply black (instead of the IMAGECOLOR yellow). I reproduce the same thing by using a predefined color palette with:
FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=palette.txt"
Here's a sample mapfile to reproduce the problem:
MAP NAME "AGG256" STATUS ON SIZE 256 256 EXTENT 0 0 10 10 IMAGECOLOR 255 255 0 TRANSPARENT TRUE IMAGETYPE "AGG" OUTPUTFORMAT NAME "AGG" DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END LAYER NAME "line" STATUS DEFAULT TYPE LINE CLASS NAME "Province" COLOR 255 0 0 END FEATURE POINTS 2 2 5 5 5 1 9 9 END END END END
Change History (3)
comment:1 by , 16 years ago
Description: | modified (diff) |
---|---|
Milestone: | → 5.2 release |
comment:2 by , 16 years ago
comment:3 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
confirming this works when mapserver is compiled with --with-experimental-png
MapServer version 5.2.0-beta3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=THREADS SUPPORTS=RGBA_PNG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
that was a known limitation of the gd quantization / palette output.
have you tried this with http://trac.osgeo.org/mapserver/ticket/2436 ?