[mapserver-users] Re: MapServer 6 WMS output to 8-bit PNG

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Wed Jul 27 14:28:47 PDT 2011


Hi,

You can also send WMS requests with wget instead of a browser, save the result image directly into a file and use gdalinfo for checking the properties.

-Jukka Rahkonen-


 Brad Posthumus wrote:

> The GetMap request was using:

> format=image/png

> ...instead of

> format=image/png; mode=8bit

> Now I'm getting paletted 8-bit images instead of 24-bit RGB's.


>> Thomas Bonfort wrote:
>> 
>> I suspect it's the copying from Firefox, your outputformat is correct (and
>> superfluous, the built-in png8 imagetype does the same)
>>

> Thanks for the response. You're right about the copying. It seems most image
> viewers will assume PNGs are RGB when copying an image from a browser. I had
> to use PIL in Python to show which WMS output images were 8-bit (mode = 'P')
> and 24-bit (mode='RGB').

> Also, I think we still need the OUTPUTFORMAT section in our mapfiles since
> we're trying to use RGBA instead of RGB, which the built-in png8 output
> format uses.


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-6-WMS-output-to-8-bit-PNG-tp6626959p6627769.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list