[Image-SIG] fromarray rotates image

Cousoulis, Paul pcousoulis at meso-scale.com
Thu Jan 26 22:30:55 CET 2012

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'


 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 image-sig at python.org (image-sig at python.org).  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 (pcousoulis at meso-scale.com),

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20120126/cbc45890/attachment-0001.html>

More information about the Image-SIG mailing list