[Image-SIG] Patch to add array interface support to PIL

Fredrik Lundh fredrik at pythonware.com
Thu Jul 13 11:29:36 CEST 2006


Travis E. Oliphant wrote:

> 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

+1 from me ;-)

</F> 





More information about the Image-SIG mailing list