PIL and Windows file formats?

Erik Max Francis max at alcyone.com
Mon Mar 5 23:44:44 EST 2001


Christopher Lee wrote:

> Is the PIL directory part of your python path?  The png image plugin
> is
> only loaded automatically if the PIL directory is on your pythonpath.
> 
> [Are you perhaps using PIL as a package (as in import PIL.Image )?]
> 
> You can load the plugin yourself.  In a message on the image-sig list,
> /F
> suggested:
> 
>     from PIL import Image, PngImagePlugin # etc.

Aha.  That didn't occur to me; I had presumed all the relevant formats
would be loaded automatically (or, rather, PIL.Image would know to load
them as needed).

I'm seeing other issues now, but they seem to be general Windows
misbehaviors rather than this stumbling block.  Thanks!

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Nationalism is an infantile sickness.
\__/ Albert Einstein
    Official Buh rules / http://www.alcyone.com/max/projects/cards/buh/
 The official rules to the betting card game, Buh.



More information about the Python-list mailing list