[Image-SIG] GeoTIFF?

Jeffrey Kunce kuncej@mail.conservation.state.mo.us
Mon, 11 Sep 2000 14:00:31 -0500


>I have a question -- has anyone successfully used=20
>GeoTIFF with PIL?  I have tried to read .tif files for USGS DRGs,=20
>which are GeoTIFF, but they don't work properly:

I am able to open and show() a USGS DRG with PIL 1.0=20
on NT, but the show() method  uses a huge amount of=20
memory and takes a very long time. It appears to convert=20
the whole image to a .BMP and save it in a temporary file
before trying to display it. I expect that you are just running=20
out memory.

Have you tried something like this:

ima=3DImage.open('d:\\data\\python\\src\\drg\\test.tif')
print ima.format,ima.size,ima.mode
imb =3D ima.crop((1000,1000,1640,1640))
imb.show()

If you can show() the smaller image, then PIL is reading and
manipulating the image file OK.

  --Jeff