[mapserver-users] How to change output from selectOutputFormat('PNG32')?

2014-02-07 Thread Robert R. Raiz
Hello,

Basically I would want to get a resulting png8 files because png32 produces
a larger file (in KiB).

Can someone clear this out for me? If I change PNG32 to PNG8 is returns the
same thing (a png32). If I comment this line in the script I still get
PNG32.

Where does it get the image format from? I thought it is from the mapfile
but I cannot seem to change this output. I would need some help in where to
look first in order to find the issue.

Running shp2img on the mapfile returns the desired outcome, a png8

Thank you all,

-- 
*Raiz Roland Robert*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] How to change output from selectOutputFormat('PNG32')?

2014-02-07 Thread Rahkonen Jukka (Tike)
Hi,

Unfortunately I do not know your script.
In a basic WMS usage the available formats are announced in GetCapabilities 
(hmm, seems to be version 5.6.5...)
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.3.0REQUEST=Getcapabilities

So if this is the default 8-bit png
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetMapBBOX=-180,-90,180,90SRS=EPSG:4326WIDTH=953HEIGHT=480LAYERS=bluemarble,continents,country_bounds,citiesSTYLES=FORMAT=image/pngTRANSPARENT=true

Then this one using image/png; mode=24bit gives it as 24-bit
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetMapBBOX=-180,-90,180,90SRS=EPSG:4326WIDTH=953HEIGHT=480LAYERS=bluemarble,continents,country_bounds,citiesSTYLES=FORMAT=image/png;%20mode=24bitTRANSPARENT=true

-Jukka Rahkonen-



Robert R. Raiz wrote:

Hello,

Basically I would want to get a resulting png8 files because png32 produces a 
larger file (in KiB).

Can someone clear this out for me? If I change PNG32 to PNG8 is returns the 
same thing (a png32). If I comment this line in the script I still get PNG32.

Where does it get the image format from? I thought it is from the mapfile but I 
cannot seem to change this output. I would need some help in where to look 
first in order to find the issue.

Running shp2img on the mapfile returns the desired outcome, a png8

Thank you all,

--
Raiz Roland Robert

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users