[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] Re: MapServer 6 WMS output to 8-bit PNG
From:       Rahkonen Jukka <Jukka.Rahkonen () mmmtike ! fi>
Date:       2011-07-27 21:28:47
Message-ID: 84446DEF76453C439E9E97E438E13A63015A52 () suutari ! haapa ! mmm ! fi
[Download RAW message or body]

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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic