PIL and NumPy

Justin Chudgar <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
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)
outim.save('redmonkey.jpg')

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. 

Thanks.
-- 


Justin Chudgar

http://www.justinzane.com/ 
5040 Saddlehorn Rd, Weed, CA 96094
530-938-9692

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.