PIL Headaches: Advice Needed

Jeff Shannon jeff at ccvcorp.com
Mon Mar 18 15:43:32 EST 2002


Marc wrote:

> I have gone thru all the tutorials and read me's I can find, and I
> still can't get PIL to work for me. At no point has it ever been able
> to recognize any file that I try to open in all formats (.bmp, .jpg,
> .gif, etc).

What code are you using?  The following should work:

import PIL.Image
my_image = PIL.Image.Open("sample.jpg")

Jeff Shannon
Technician/Programmer
Credit International





More information about the Python-list mailing list