[Image-SIG] partial images possible?

Fredrik Lundh fredrik@pythonware.com
Tue, 23 Mar 1999 22:16:47 +0100


David Jeske wrote:
> I've had trouble loading partial (i.e. truncated) images. (jpeg) Is
> there some way to get PIL to load just the partial image and leave the
> rest blank?

not in 1.0b1.  it's on the list for a future version (probably
not 1.0 final, which is essentially frozen by now).

if you really need this feature now, you have to hack
libImaging/JpegDecode.c yourself (it might work to just
comment out "state->errcode = IMAGE_CODEC_BROKEN"
in the ImagingJpegDecode function...).

Cheers /F
http://www.pythonware.com/people/fredrik