Opened 13 years ago

Closed 13 years ago

#3865 closed defect (wontfix)

pixmap symbols - AGG does not seem to support the TRANSPARENT keyword in SYMBOL

Reported by: havatv Owned by: tbonfort
Priority: high Milestone: 6.0.1 release
Component: AGG Version: 6.0
Severity: major Keywords: transparent, agg
Cc: havatv, sdlime

Description

AGG (png) does not seem to support the TRANSPARENT parameter of the SYMBOL element.

GD (gif) seems to support it.

This is the symbol that I used (the image is from the Mapserver documentation).

   SYMBOL
     NAME "in_the_star"
     TYPE PIXMAP
     IMAGE "images/star-symbol.png" # size 20x20
     TRANSPARENT 8 # does not work for AGG, works for GD!
   END

Attachments (5)

star-symbol.png (229 bytes ) - added by havatv 13 years ago.
symboltransparent6.png (674 bytes ) - added by havatv 13 years ago.
6.0.0 rendering (agg, png) - note the lack of transparency
symboltransparent6.gif (285 bytes ) - added by havatv 13 years ago.
6.0.0 - gif (GD) version - OK
symboltransparent5.png (317 bytes ) - added by havatv 13 years ago.
5.6.6 png (agg) version - OK
symboltransparent5.gif (340 bytes ) - added by havatv 13 years ago.
5.6.6 gif (gd) version - OK

Download all attachments as: .zip

Change History (9)

comment:1 by havatv, 13 years ago

Milestone: 6.0 release6.0.1 release
Priority: normalhigh
Version: svn-trunk (development)6.0

I can confirm that this bug is still present in 6.0.0. I will attach some files that show the results for mapserver 5 (5.6.6) and mapserver 6 (6.0.0).

Here is a complete map file that can be used to reproduce the bug:

MAP
  SIZE 100 100
  EXTENT 0 0 100 100
  UNITS meters
  IMAGECOLOR 255 255 0
  IMAGETYPE png
  #IMAGETYPE gif

  SYMBOL
    NAME "in_the_star"
    TYPE PIXMAP
    IMAGE "images/star-symbol.png" # size 20x20
    TRANSPARENT 8 # does not work!
  END

  LAYER
    NAME "test"
    SIZEUNITS pixels
    STATUS DEFAULT
    TYPE POINT
    FEATURE
      POINTS
        50 50
      END
    END
    CLASS #
      NAME 'Star'
      STYLE # ------ pixmap ------
        SYMBOL 'in_the_star'
        #SIZE 10
      END # style
    END # class
  END # layer
END # Map file

star-symbol.png is in the documentation "tree", but I attach it anyway.

by havatv, 13 years ago

Attachment: star-symbol.png added

by havatv, 13 years ago

Attachment: symboltransparent6.png added

6.0.0 rendering (agg, png) - note the lack of transparency

by havatv, 13 years ago

Attachment: symboltransparent6.gif added

6.0.0 - gif (GD) version - OK

by havatv, 13 years ago

Attachment: symboltransparent5.png added

5.6.6 png (agg) version - OK

by havatv, 13 years ago

Attachment: symboltransparent5.gif added

5.6.6 gif (gd) version - OK

comment:2 by tbonfort, 13 years ago

Cc: sdlime added

Steve, do we really want to support this feature?

comment:3 by sdlime, 13 years ago

Hmmm... We've been trending to setting transparency through image and not the symbol for years. I'd say no and would like to see the keyword in symbols depricated. How big a fix is it? Could fix in 6.0 and mark as depricated and then remove in 6.2...

Steve

comment:4 by tbonfort, 13 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.