PIL problem: IOError: cannot identify image file

Fredrik Lundh fredrik at pythonware.com
Sun Aug 20 09:38:28 EDT 2006


h112211 at gmail.com wrote:

> Doh! Apparently Image.open() wants a path, not a file. So
> 
> i = Image.open('c:\\image2.png')
> 
> works fine.

it works fine on files too, if you open them in *binary* mode.

</F>




More information about the Python-list mailing list