Hi Fredric,<div><br></div><div>Thanks for response.</div><div>I will try that.</div><div><br></div><div>Regards, </div><div>Gautam <br></div><div><br><div class="gmail_quote">On Thu, Apr 23, 2009 at 7:45 PM, Frederic Junod (via Nabble) <span dir="ltr"><<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2684687&i=0" target="_top" rel="nofollow">ml-user%2B96295-1873737658@...</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,
<br><br>For WMS and MapServer, if you set:
<br>extension=png
<br><br>TC will transform this to FORMAT=image/png and give it to mapserver.
<br>Then mapserver will search for an output type that have this value
<br>(MIMETYPE option).
<br><br>For your case, make sure you have (in your mapfile) an outputformat
<br>that looks like:
<br>OUTPUTFORMAT
<br> NAME png
<br> DRIVER "AGG/PNG"
<br> MIMETYPE "image/png"
<br> IMAGEMODE RGBA
<br> EXTENSION "png"
<br> FORMATOPTION "INTERLACE=OFF"
<br> FORMATOPTION "QUANTIZE_FORCE=ON"
<br> FORMATOPTION "QUANTIZE_DITHER=OFF"
<br> FORMATOPTION "QUANTIZE_COLORS=256"
<br>END
<br><br>If you need it, you can (in tilecache.cfg) precisely set the mime type
<br>by setting the mime_type option.
<br>The default is "image/" + extension
<br><br>Hope this is clear enough ...
<br><br>fredj
<br><br>On Thu, Apr 23, 2009 at 3:17 PM, gautamvs <<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2683477&i=0" rel="nofollow" target="_blank">gautamvs@...</a>> wrote:
<div><div class='shrinkable-quote'><br>>
<br>> Hi
<br>>
<br>> My requirement is to get 8 bit png from Tilecache, Mapserver with AGG
<br>> support.
<br>> I have checked with mapserver(with AGG) the out put for 8 bit png is very
<br>> good for my application. But when I include mapserver layer in tilecache
<br>> config file, the out put image is of 24bit.
<br>> How to specify output image type (i.e. bit depth) in tilecache config ?
<br>>
<br>> I am using Tilecache-2.10, Mapserver 5.2.1, AGG 2.5, Python 2.4 on CentOS.
<br>>
<br>> Thanks
<br>> Gautam
</div></div>--
<br>Frédéric Junod
<br>Camptocamp SA
<br>_______________________________________________
<br>Tilecache mailing list
<br><a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2683477&i=1" rel="nofollow" target="_blank">Tilecache@...</a>
<br><a href="http://openlayers.org/mailman/listinfo/tilecache" rel="nofollow" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</blockquote></div><br></div>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Regarding-getting-8-bit-png-from-TileCache-tp2683118p2684687.html">Re: [Tilecache] Regarding getting 8-bit png from TileCache</a><br>
Sent from the <a href="http://n2.nabble.com/TileCache-f1836434.html">TileCache mailing list archive</a> at Nabble.com.<br>