[Image-SIG] PIL and NumPy

Justin Chudgar justin at justinzane.com
Fri Apr 23 08:19:16 CEST 2010

I'm trying to find some documentation about the methods used to convert Image 
objects to arrays and back. The following methods seem to work

im = Image.open('monkey.jpg')
ar = numpy.asarray(im)
outim = Image.fromarray(outar)

however, I get gibberish for an output image even if I attempt to write my 
original arrays back. Can someone kindly point me to the appropriate 
documentation on this so I can RTFM. 


Justin Chudgar

5040 Saddlehorn Rd, Weed, CA 96094

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20100422/56688925/attachment-0001.html>

More information about the Image-SIG mailing list