[Image-SIG] Patch to add array interface support to PIL
Travis E. Oliphant
oliphant.travis at ieee.org
Thu Jul 13 00:41:42 CEST 2006
The attached patch is against SVN version of PIL (Image.py in
particular) that makes the Image object support the array interface
Added:
fromarray(obj) returns an image from an object
exporting the array interface
__array_interface__ : property returning the array_interface
dictionary so that a PIL image can
be understood as an array.
It would be great if this patch got into PIL 1.1.6
-Travis
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pil_patch_against_358.txt
Url: http://mail.python.org/pipermail/image-sig/attachments/20060712/afda3c51/attachment.txt
More information about the Image-SIG
mailing list