[Image-SIG] Re: PIL problem
Fredrik Lundh
fredrik at pythonware.com
Sun Aug 15 15:09:35 CEST 2004
Thomas Clive Richards wrote:
>>>> import Image
>>>> im = Image.open('title.png')
>>>> im.verify()
>>>> im2 = im.copy()
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.2/site-packages/PIL/Image.py", line 630, in copy
> self.load()
> File "/usr/lib/python2.2/site-packages/PIL/ImageFile.py", line 166, in load
> self.load_seek(o)
> File "/usr/lib/python2.2/site-packages/PIL/ImageFile.py", line 217, in
> load_seek
> self.fp.seek(pos)
> AttributeError: 'NoneType' object has no attribute 'seek'
>
> That doesn't seem right...
read the documentation: you cannot access the file after you've called
"verify"; you need to reopen the file first.
> Also, is this package dead?
no.
</F>
More information about the Image-SIG
mailing list