[Image-SIG] help for conversion of NUMARRAY to PIL object

Fredrik Lundh fredrik at pythonware.com
Thu Sep 15 16:47:57 CEST 2005


Zhenglong Li wrote:

> I am a newbie to python. I encounter a problem that how to convert an
> array of numarray to pil object. For example, the data in an image is
> extracted using Image.getdata, then the data are converted into  an
> array in numarray. But when the array is needed to convert to the pil
> object, I lose my mind. Could somebody here provide some solutions to
> this problem?  (In other words, all I need is the interface between
> reading/writing image data and NUMARRAY.)

this page might help:

    http://effbot.org/zone/pil-numpy.htm

</F> 





More information about the Image-SIG mailing list