[mapserver-users] PNG32 to support transparent images in Silverlight?

Edward Mac Gillavry emacgillavry at hotmail.com
Mon Jan 11 16:25:37 EST 2010


Dear list,

Serving up PNG images to a Silverlight client, that needs to have a transparent background doesn't appear to work for 8-bit PNG and 24-bit PNG, because Silverlight does not appear to support palette-based transparency. Is there any way to serve up 32-bit PNG like so:

  IMAGECOLOR 255 255 255
  IMAGETYPE png32

  OUTPUTFORMAT
    NAME png32
    DRIVER 'AGG/PNG'
    MIMETYPE 'image/png'
    IMAGEMODE RGBA
    EXTENSION 'png'
    TRANSPARENT ON
  END

Our current MapServer setup is: "MapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE"

Simply installed on Ubuntu using apt-get, but had I better compile from source -–with-experimental-png option instead? Please advise. Thanks in advance.

Regards,

Edward
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100111/7449bada/attachment.html


More information about the mapserver-users mailing list