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 
contains 
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:  
   im1=Image.open('C:/test/1.jpg','r') 
 
 
 
 

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

<BR/><BR/>-----------------------------------------------------------------<BR/>
<a 
href="http://a.abv.bg/www/delivery/ck.php?oaparams=2__bannerid=2453__zoneid=63__oadest=http://sportni.bg/worldcup2010/";
 target="_blank">
Следи най-интересното от световното първенство в ЮАР. Научи повече от ТУК!
</a>
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to