[Tilecache] Configuring PIL for 4-bit colormap?

Christopher Schmidt crschmidt at metacarta.com
Fri Aug 14 13:20:34 EDT 2009


On Fri, Aug 14, 2009 at 12:43:25PM -0400, Russell McOrmond wrote:
> 
>    I notice when I use metaTile=yes that the PNG files I get are much 
> larger than when metaTile=no.   I notice also that with metaTile=yes I get 
> an 8-bit colormap, but with metaTile=no I get a 4-bit colourmap, which is 
> likely the reason for the size difference.
> 
>    Is there a simple/etc way to configure tilecache and PIL to generate 
> similar output for metaTile=yes as we get with metaTile=no?  I'd like the 
> smaller files, but don't want to be sacrificing image quality to do so.

metaTile=no means "Don't touch this image at all -- tkae what the server
gives us, and write it to disk."

metaTile=yes means "Do some work on this with PIL."

Patches to change what PIL does based on configuration variables are 
welcome, but there is no simple setting to do what you want at this time.

-- Chris 

> Thanks.
> 
> -- 
>   Russell McOrmond, Internet Consultant: <http://www.flora.ca/>
>   Please help us tell the Canadian Parliament to protect our property
>   rights as owners of Information Technology. Sign the petition!
>   http://digital-copyright.ca/petition/ict/     http://KillBillC61.ca
> 
>   "The government, lobbied by legacy copyright holders and hardware
>    manufacturers, can pry control over my camcorder, computer,
>    home theatre, or portable media player from my cold dead hands!"
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache

-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list