[Mapit] How to produce correct tiles...
Bernhard Herzog
bh at intevation.de
Fri Mar 8 11:44:47 CET 2002
Starcevic Gordan <gordan.starcevic at datatrak.at> writes:
[problems with epscut and PNG:]
> File "epscut", line 122, in render_tile
> image.save(outputfile)
> File ".\Image.py", line 686, in save
> KeyError: .png
That means that for some reason the Python Imaging Library (PIL) doesn't
know about PNG files.
Which version of PIL do you use? Some older versions had a bug related
to this. MapIt! itself has a workaround for this bug, but epscut
doesn't. You could try to add the line
import PIL.PngImagePlugin
to epscut (a good place would be right after the "import PIL.Image") or
upgrade to a newer version. The bug was fixed in 1.1.2 IIRC.
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/
More information about the Mapit
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)