[Tilecache] Where in TC code is metatile cutting?

Mark Deneen mdeneen+tiles at saucontech.com
Mon Jan 18 11:29:54 EST 2010


Ivan,

You are attempting to create 8 bit _transparent_ png files?

If so, our goals are different.  Are you making a layer to add on top of
another?

Mark

Ivan Mincik wrote:
> 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
>   
> ------------------------------------------------------------------------




More information about the Tilecache mailing list