Yes, the goal here is to create 8-bit paletted PNG's with transparency. The renderer (MapServer) creates these properly, however TileCache is not able to preserve this format when metatiling is enabled.<br>--<br><br><div class="gmail_quote">
On Mon, Jan 18, 2010 at 8:29 AM, Mark Deneen <span dir="ltr"><<a href="mailto:mdeneen%2Btiles@saucontech.com">mdeneen+tiles@saucontech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ivan,<br>
<br>
You are attempting to create 8 bit _transparent_ png files?<br>
<br>
If so, our goals are different. Are you making a layer to add on top of<br>
another?<br>
<font color="#888888"><br>
Mark<br>
</font><div class="im"><br>
Ivan Mincik wrote:<br>
> Hi, good shot. As it is written there 'png8:filename.png' is what makes the correct type of image .<br>
> I did following test:<br>
><br>
> from pythonmagickwand.image import Image<br>
> i = Image('test.png')<br>
> i.format = 'PNG'<br>
> i.save('png8:out.png')<br>
><br>
> Resulting image IS 8bit paleted image, BUT with the same problem as in PIL. The transparency value for each color is set<br>
> to 255 like in this example:<br>
><br>
> MapServer palette output:<br>
> -----------------<br>
> 0: 0,0,0,0<br>
> 1: 251,0,0,64<br>
> 2: 250,0,0,54<br>
> 3: 253,0,0,114<br>
><br>
> ImageMagick output:<br>
> -----------<br>
> 0: 0,0,0,0<br>
> 1: 251,0,0,255<br>
> 2: 250,0,0,255<br>
> 3: 253,0,0,255<br>
><br>
> Can somebody else play with this to confirm that we are not able to solve this problem with PIL and neither with<br>
> ImageMagick ?<br>
><br>
> Ivan<br>
><br>
</div>> ------------------------------------------------------------------------<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</div></div></blockquote></div><br>