[PYTHON IMAGE-SIG] Reading, displaying, and manipulating sun-rasters
Fredrik Lundh
fredrik_lundh@ivab.se
Mon, 17 Jun 1996 10:00:02 +0200
> My group is trying to load in a raster file to manipulate it as an object
> in a canvas.
Seems as you've stumbled upon two problems with PIL at the same time:
1. Interlaced GIFs are not properly read, as I noticed myself
a few days ago (found a "NYI" comment in the sources :-(.
This is why the image looks so strange. I'll fix this for
the next release.
2. A (possible) problem with the type of Sun raster files you're
using. To help me track down this problem, could you mail me the
output from pilfile.py?
$ python pilfile.py -i <rasfile>
And yes, what happens if you try to do "show" on that image.
Image.open(file).show()
If that fails, does this work?
Image.open(file).convert("RGB").show()
Anyway, a quick workaround is to use PPM instead of GIF as the
intermediate format (or determine how to switch off interlacing in
ImageMagick).
Regards /F
=================
IMAGE-SIG - SIG on Image Processing with Python
send messages to: image-sig@python.org
administrivia to: image-sig-request@python.org
=================