[Tilecache] Where in TC code is metatile cutting?

Ivan Mincik ivan.mincik at gmail.com
Sun Jan 17 13:17:59 EST 2010


On Sun, Jan 17, 2010 at 10:49 AM, Guillaume Sueur
<no-reply at neogeo-online.net> wrote:
> Hi,
>
> What about using image-magick
> (http://www.assembla.com/wiki/show/pythonmagickwand) to crop the
> MetaTile image ?
>
> It's maybe worth a try.

So, I did test with following code:

#!/usr/bin/python

from pythonmagickwand.image import Image
i = Image('test.png', '8-bit')
i.format = 'PNG'
i.save('out.png')

Test image is here: http://gista.sk/dl/test.png

Input 'test.png' is 8bit palleted image, but resulting 'out.png' is
RGBA . Any idea what to change to get same image type in output?

Ivan



More information about the Tilecache mailing list