[mapserver-users] Mapserver 5.2.0 and 5.4.1,
QUANTIZE_FORCE or PALETTE_FORCE do not produce
8bit colour PNG file - only reduce the number of colours used.
nnikolov at gypsii.com
Tue Jul 7 07:23:01 EDT 2009
I have tried unsuccessfully to reduce the size of my PNG image tiles,
generated by the Mapserver using the QUANTIZE_FORCE or PALETTE_FORCE
options. The resulting file is marginally smaller than the one not using
Using "IrfanView" I could get some information about the colours used and
the number of bits used to code the colours. The repost shows a decrease of
the number of colours used from over 1600 to either 241 (Mapserver defined)
or 193 (using palette file containing 71 predefined colours).
However, tool reports 24 bits used for colour mapping.
If I put the PNG image through tools like "pngquant", "OptiPng" or
"pngcrush", the resulting image is much smaller and "IrfanView" reports that
only 8 bits are used for colour mapping!
The relevant map file part is:
The Mapserver, both 5.2.0 and 5.4.1, has been configured with
--with-experimental-png or --enable-experimental-png (I have not noticed any
difference in using either option).
Please, advise what I am missing here.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users