[Mapserver-users] HOWTO: 24 bit png on WMS interface
Norman Vine
nhv at cape.com
Tue Jan 27 12:10:09 PST 2004
Bart van den Eijnden writes:
>
> thanks to Frank Warmerdam I have solved my problem with not getting 24 bit
> PNG output in Mapserver.
>
> In my MAP file I used the following:
>
> IMAGETYPE PNG24
>
> and then in my WMS request I used format=image/png
>
> This caused 8-bit PNG to be generated instead of 24-bit PNG.
>
> The solution Frank suggested is using the following OUTPUTFORMAT in my MAP
> file and this works:
>
> OUTPUTFORMAT
> NAME PNG24
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> EXTENSION PNG
> IMAGEMODE RGBA
> TRANSPARENT ON
> END
>
> Maybe something for the Mapserver WMS HOWTO?
see
http://mapserver.gis.umn.edu/doc/mapfile-reference.html#outputformat
HTH
Norman
More information about the MapServer-users
mailing list