[Image-SIG] PIL.Image.load() returns None

pyimgsig.20.forest at xoxy.net pyimgsig.20.forest at xoxy.net
Sun Sep 24 01:30:39 CEST 2006


Hi there.

I'm using PIL 1.1.6b1 with Python 2.5 on Windows.

Can someone tell me why PIL.Image.getdata() and PIL.Image.load() cause
subsequent PIL.Image.load() calls to return None?

	>>> import Image
	>>> im = Image.open('wire.png')
	>>> print type(im.load())
	<type 'PixelAccess'>
	>>> print type(im.load())
	<type 'NoneType'>
	>>> im = Image.open('wire.png')
	>>> print type(im.getdata())
	<type 'ImagingCore'>
	>>> print type(im.load())
	<type 'NoneType'>



More information about the Image-SIG mailing list