[Tilecache] Where in TC code is metatile cutting?
Stephen Woodbridge
woodbri at swoodbridge.com
Sun Jan 17 13:36:45 EST 2010
Ivan Mincik wrote:
> 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')
Just a wild guess with no knowledge but does something like this work?
does the save method have any options or are there in attributes that
you can set to control output format on the Image object?
i.save('out.png', '8-bit')
-Steve
> 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
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
More information about the Tilecache
mailing list