[Tilecache] Where in TC code is metatile cutting?

Ivan Mincik ivan.mincik at gista.sk
Mon Jan 18 10:23:31 EST 2010


On Sunday 17 January 2010, Guillaume Sueur wrote:
> found that post :
> http://studio.imagemagick.org/pipermail/magick-developers/2004-April/001937
>.html
>

Hi, good shot. As it is written there 'png8:filename.png' is what makes the correct type of image .
I did following test:

from pythonmagickwand.image import Image
i = Image('test.png')
i.format = 'PNG'
i.save('png8:out.png')

Resulting image IS 8bit paleted image, BUT with the same problem as in PIL. The transparency value for each color is set 
to 255 like in this example:

MapServer palette output:
-----------------
    0: 0,0,0,0
    1: 251,0,0,64
    2: 250,0,0,54
    3: 253,0,0,114

ImageMagick output:
-----------
    0: 0,0,0,0
    1: 251,0,0,255
    2: 250,0,0,255
    3: 253,0,0,255

Can somebody else play with this to confirm that we are not able to solve this problem with PIL and neither with 
ImageMagick ?

Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20100118/1d0caa52/attachment.bin


More information about the Tilecache mailing list