fromarray rotates image

"Cousoulis, Paul" <[email protected]> Thu, 26 Jan 2012 21:30:55 +0000
Newsgroups gmane.comp.python.image
Message-ID <26A0927F89A6AC45B7AE419B439C2D4CE9D4@msd-mb01-9238.meso-scale.com>
The fromarray method is rotating the shape of arrays when converting from numpy arrays.

In [56]: npArray.shape
Out[56]: (650, 670)

In [57]: newimage = Image.fromarray(npArray)

In [58]: newimage.size
Out[58]: (670, 650)

In [59]: Image.VERSION
Out[59]: '1.1.7'

Thanks
Paul


====================================================================== 
 This electronic message transmission and any attachments are 
 confidential and/or proprietary and may constitute legally privileged information of 
 Meso Scale Diagnostics, LLC. The information is intended for solely 
 the use of [email protected] ([email protected]).  If you are not 
 the intended recipient, you are hereby notified that any 
 disclosure, copying, distribution or the taking of any action in 
 reliance of this information is strictly prohibited. You are not 
 authorized to retain it in any form nor to re-transmit it, and 
 you should destroy this email immediately. 

 If you have received this electronic transmission in error, 
 please notify us by telephone (240-631-2522) or by electronic 
 mail to the sender of this email, Cousoulis, Paul ([email protected]),
 immediately. 
 =====================================================================

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig