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  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to