|
List Info
Thread: problem with .ras files
|
|
| problem with .ras files |

|
2007-03-28 09:35:33 |
|
Hello, this is my first email in this list. I am trying to read the pixels of some .ras files, but an IndexError always happens.
>>> import Image >>> im = Image.open("C:/argus/etc/test.ras")
>>> im <SunImagePlugin.SunImageFile instance at 0x016A78F0> >>> data = im.getdata()
Traceback (most recent call last): File "<pyshell#3>", line 1, in -toplevel-
data = im.getdata() File "C:Python24Libsite-packagesPILImage.py", line 860, in getdata self.load() File "C:Python24Libsite-packagesPILImageFile.py", line 138, in load
self.im = self.map.readimage( IndexError: tuple index out of range >>> im.getpixel((50,50))
Traceback (most recent call last): File "<pyshell#4>", line 1, in -toplevel-
im.getpixel((50,50)) File "C:Python24Libsite-packagesPILImage.py", line 922, in getpixel self.load() File "C:Python24Libsite-packagesPILImageFile.py", line 138, in load
self.im = self.map.readimage( IndexError: tuple index out of range
Anybody can help me?
Thanks and sorry about my bad English...
Pablo Cavalcanti
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|