[Tilecache] Regarding getting 8-bit png from TileCache

gautamvs gautamvs at gmail.com
Thu Apr 23 13:27:14 EDT 2009


Hi Fredric,
Thanks for response.
I will try that.

Regards,
Gautam

On Thu, Apr 23, 2009 at 7:45 PM, Frederic Junod (via Nabble) <
ml-user+96295-1873737658 at n2.nabble.com<ml-user%2B96295-1873737658 at n2.nabble.com>
> wrote:

> Hi,
>
> For WMS and MapServer, if you set:
> extension=png
>
> TC will transform this to FORMAT=image/png and give it to mapserver.
> Then mapserver will search for an output type that have this value
> (MIMETYPE option).
>
> For your case, make sure you have (in your mapfile) an outputformat
> that looks like:
> OUTPUTFORMAT
>   NAME png
>   DRIVER "AGG/PNG"
>   MIMETYPE "image/png"
>   IMAGEMODE RGBA
>   EXTENSION "png"
>   FORMATOPTION "INTERLACE=OFF"
>   FORMATOPTION "QUANTIZE_FORCE=ON"
>   FORMATOPTION "QUANTIZE_DITHER=OFF"
>   FORMATOPTION "QUANTIZE_COLORS=256"
> END
>
> If you need it, you can (in tilecache.cfg) precisely set the mime type
> by setting the mime_type option.
> The default is "image/" + extension
>
> Hope this is clear enough ...
>
> fredj
>
> On Thu, Apr 23, 2009 at 3:17 PM, gautamvs <gautamvs at ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2683477&i=0>>
> wrote:
> >
> > Hi
> >
> > My requirement is to get 8 bit png from Tilecache, Mapserver with AGG
> > support.
> > I have checked with mapserver(with AGG) the out put for 8 bit png is very
>
> > good for my application. But when I include mapserver layer in tilecache
> > config file, the out put image is of 24bit.
> > How to specify output image type (i.e. bit depth) in tilecache config ?
> >
> > I am using  Tilecache-2.10, Mapserver 5.2.1, AGG 2.5, Python 2.4 on
> CentOS.
> >
> > Thanks
> > Gautam
>
> --
> Frédéric Junod
> Camptocamp SA
> _______________________________________________
> Tilecache mailing list
> Tilecache at ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2683477&i=1>
> http://openlayers.org/mailman/listinfo/tilecache
>
>
> ------------------------------
>  This email is a reply to your post @
> http://n2.nabble.com/Regarding-getting-8-bit-png-from-TileCache-tp2683118p2683477.html
> You can reply by email or by visting the link above.
>
>

-- 
View this message in context: http://n2.nabble.com/Regarding-getting-8-bit-png-from-TileCache-tp2683118p2684687.html
Sent from the TileCache mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20090423/7c4a5a20/attachment.html


More information about the Tilecache mailing list