Re: [Image-SIG] open, show, png, blank

2012-01-29 Thread Matthias Bock
Am Freitag, den 27.01.2012, 11:11 -0500 schrieb Nelson Tong: > outI = Image.open( fileOutPNGFile ) > outI.show(); > > The code run without error, but the image return via X-windows on my > linux machine is a blank image, without visible graphic on it. What color is this "blank": Grey? White?

[Image-SIG] open, show, png, blank

2012-01-29 Thread Nelson Tong
I tried the following for a png file. outI = Image.open( fileOutPNGFile ) outI.show(); The code run without error, but the image return via X-windows on my linux machine is a blank image, without visible graphic on it. I am 100% positive that the image of fileOutPNGFile is not corrupted bec

[Image-SIG] fromarray rotates image

2012-01-29 Thread Cousoulis, Paul
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

[Image-SIG] PIL's PDF export dpi

2012-01-29 Thread Matthias Bock
Dear all, Python's Imaging Library PIL seems to ignore image resolution settings, when saving as PDF. Sample code: #!/usr/bin/python2.6 # -*- coding: iso-8859-15 -*- from PIL import Image im = Image.open('demo.png') im.info['dpi'] = (300,300) im.save( 'demo.pdf', **im.info ) The (300,300)

Re: [Image-SIG] PIL install scripts broken?

2012-01-29 Thread Neru Yume
I had/have similar issues when trying to install from source on PyPy. I did not find any solutions, but regarding workarounds - I managed to install it for CPython by using a binary from http://www.lfd.uci.edu/~gohlke/pythonlibs/ > Date: Mon, 23 Jan 2012 17:56:02 + > From: marcin.tus...@gma