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 image-sig@python.org (image-sig@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 (pcousou...@meso-scale.com), immediately. =====================================================================
_______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig