[Image-SIG] why does Image.open fail after reload(Image) -- fixable bug ??

Sebastian Haase haase at msg.ucsf.edu
Mon Apr 14 11:27:33 CEST 2008


this is a short question:

Why does Image.open fail after reload(Image) ?

Here is what I get :
>>> import Image
>>> i = Image.open(r"/Users/labuser/Desktop/Picture 5.png")
>>> i.size
(1920, 1200)
>>> reload(Image)
<module 'Image' from '....../PIL/Image.pyc'>
>>> i = Image.open("Picture 5.png")
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "......./PIL/Image.py", line 1916, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file
>>> Image.VERSION

Since I ran into this a couple times,
I was just wondering if this could be fixed ?

Thanks for PIL,
Sebastian Haase

More information about the Image-SIG mailing list