Hi,<br><br>Perhaps something correlated to the bit of colors ? The GIF is a 256 only color format.<br>Instead the png could be to million colors.<br><br>I use this :<br><br> IMAGETYPE PNG8<br> OUTPUTFORMAT<br> NAME "AGGA"<br>
DRIVER AGG/PNG<br> MIMETYPE "image/png"<br> IMAGEMODE RGBA # need RGBA to have the transparent<br> EXTENSION "png"<br> FORMATOPTION "GAMMA=1.0"<br> FORMATOPTION "INTERLACE=true"<br>
FORMATOPTION "QUANTIZE_DITHER=OFF"<br> FORMATOPTION "COMPRESSION=6" # Compression: 0=no compression, 9=best, 6=default compression<br> FORMATOPTION "QUANTIZE_FORCE=ON"<br> FORMATOPTION "QUANTIZE_COLORS=256"<br>
TRANSPARENT ON<br> END<br><br>The most important thing is that the <br> FORMATOPTION "QUANTIZE_COLORS=256"<br><br>force the mapserver to give only the 256 better colors.<br><br>If the question is on the 256 color or million color perhaps this could work.<br>
<br>Andrea.<br><br><div class="gmail_quote">2012/10/23 Alessandro Pasotti <span dir="ltr"><<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi All,<br>
<br>
I'm in big troubles with a wierd error in python mapscript, the log<br>
reports: libpng error: image size exceeds user limits in IHDR<br>
<br>
image size is 256x256... using gif instead of png shows no errors (as<br>
expected)... any idea?<br>
<br>
the very same piece of code run fine on my testing machine, the error<br>
is only on production server.<br>
<br>
Mapserver version is 6.0.3, python 2.5 and the code is basically a<br>
wrapper to WMS service, the error appears just after<br>
<br>
map.OWSDispatch( req )<br>
<br>
output format is set to AGGA:<br>
<br>
OUTPUTFORMAT<br>
NAME 'AGGA'<br>
DRIVER AGG/PNG<br>
IMAGEMODE RGBA<br>
END<br>
<br>
the complete call is<br>
<br>
?LAYERS=track_1&TRANSPARENT=TRUE&FORMAT=image%2Fpng%3B%20mode%3D24bit&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=0.0,5009377.0857,2504688.54285,7514065.62855&WIDTH=256&HEIGHT=256<br>
<br>
It seems like wrong HEIGHT and WIDTH are passed to the raster buffer,<br>
I've already checked that the map object has the right size after<br>
OWSDispatch.<br>
<br>
Thanks in advance for any help!<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Alessandro Pasotti<br>
w3: <a href="http://www.itopen.it" target="_blank">www.itopen.it</a><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>