[Image-SIG] Array to image problem.

Валери Милев valery_ at abv.bg
Fri Jun 4 22:00:46 CEST 2010

Hello, I'm not a programer ,but i need to make a little program now and I need a little help.
I'm using:
Python 2.6.4 |EPD 6.1-1 (32-bit)| (r264:75706, Nov 11 2009, 19:42:36) [MSC v.1500 32 bit (Intel)] on win32  
  I have a array, which 
the pixel values for
luminance in a picture. Now I need to save this array as jpg.  I have tried with
    i = Image.fromarray(myArray)    i.save("C:/test/mess.jpg")   but the result is a big mess of random black and white pixels.  This is how I 
get the array form the original Image:  

     neueBilder1 = im1.split()    Werte1 = array(neueBilder1[0].getdata())    Matrix1 = reshape(Werte1,(480,640))   
  I appreciate your help! Valeri Milev  
Valeri Milev

<a href="http://a.abv.bg/www/delivery/ck.php?oaparams=2__bannerid=2453__zoneid=63__oadest=http://sportni.bg/worldcup2010/" target="_blank">
Следи най-интересното от световното първенство в ЮАР. Научи повече от ТУК!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20100604/de21390d/attachment-0001.html>

More information about the Image-SIG mailing list