Opened 16 years ago

Last modified 16 years ago

#2590 closed defect

[AGG] 8bit AGG/PNG not transparent — at Version 1

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 dmorissette)

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 (1)

comment:1 by dmorissette, 16 years ago

Description: modified (diff)
Milestone: 5.2 release
Note: See TracTickets for help on using tickets.