[Image-SIG] problem installing pillow on windows7

2012-12-21 Thread John Hinely
My long term goal is to run mezzanine using virtualenv on a windows7 box. I'm able to get mezzanine up an running but I receive a "decoder jpeg not available" error when I try to add images. It appears that libjpeg did not get installed. I used "pip install mezzanine" which installed pillow a

[Image-SIG] Python Imaging Library 1.1.7 for Python 2.7 (Windows only) depends on VS2010DBG

2012-12-21 Thread Michel Sauvard
Hi. In case you do not know yat. _imagingft.pyc, necessary for ImageFont, has a dependency on the visual C++ debug runtime. A part of it must not have been compiled with the "release" mode. This prevent anybody without VC2008 to load fonts. Best regards __

[Image-SIG] NameError: name 'RGB' is not defined

2012-12-21 Thread Abha Agrawal
When I run the follwing code: from PIL import Image Image.new(RGB, (600, 600), (250, 250, 400)) it returns NameError: name 'RGB' is not defined Please advise. ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image

Re: [Image-SIG] [Tutor] Plot multiple lines using python / basemap

2012-12-21 Thread Dave Angel
On 11/15/2012 04:20 AM, Boris Vladimir Comi wrote: > > Hi all: > > I have begun to learn about python / matplolib / basemap and really need some > help. > > My data is in an Excel workbook with the following structure: > > Evento FechaLatitud

[Image-SIG] PIL image size after rotate

2012-12-21 Thread Chad Ferguson
Listers, I have a very simple script that rotates images using PIL. After running, the output images are about 1/3 the file size of the input image. The file attributes indicate they have increased in resolution from 72 to 96 ppi but have the same radiometric depth. Does the PIL rotate meth

[Image-SIG] using PIL's split command with color jpg file .. help for color jpg file

2012-12-21 Thread jasonzz
I'm using python 2.7 with PIL 1.1.7. I figure out how to work with black and white .jpg files. I ended up writing a bunch of programs to do some very interesting/cool image process effects as to learn more about image process. I own a small number of books on the topic of image process and ha

[Image-SIG] Can't install PIL 1.1.7 on Windows 7

2012-12-21 Thread Bob Weil
Hi, I tried installing the package "Python Imaging Library 1.1.7 for Python 2.7 (Windows only)" on my Windows 7 laptop. It complained that it could not find my Python 2.7 installation in my registry. But, when I type "python" in a command window, I get the following response: Python 2.7.2 (de

[Image-SIG] PIL 1.1.7 for Python 2.7: ImageShow.py

2012-12-21 Thread Anne Dicky
Hello, On Windows 7 (with Python 2.7 32 bits), Image.show() doesn't work (the temporary file is deleted before Viewer.exe can load it). Here is a fix: line 99 has been changed into return "start /wait %s && sleep 20 && del /f %s" % (file, file) (WindowsViewer is similar to MacViewe

[Image-SIG] Current libraries for image processing?

2012-12-21 Thread Alasdair McAndrew
I'm just starting to investigate Python for image processing, and I'm very impressed (up to now my main software has been Matlab and its alternatives: scilab, Octave etc). What I want to know is, what is the current state of the art with regard to image processing libraries? Is PIL still an activ

[Image-SIG] Compilation and Install works but selftest.py fails (reportlab calls also fail)

2012-12-21 Thread Samuel Chou
Please see gist for details. I'm flummoxed =( git://gist.github.com/4221127.git Sam 'Like' us on Facebook for exclusive content and other resources on all Barracuda Networks solutions. Visit http://barracudanetworks.com/facebook ___ Image-SIG mai

[Image-SIG] PIL Bug while converting EPS files to PNG

2012-12-21 Thread Brandon George
I wrote a simple implementation of PIL to convert a list of EPS files to PNG. The output PNG files are at a much lower resolution than required. And there seems to be no way to fix it. Looking at /usr/lib64/python2.7/site-packages/PIL/EpsImagePlugin.py this is implemented by calling ghostscript:

Re: [Image-SIG] NameError: name 'RGB' is not defined

2012-12-21 Thread Edward Cannon
you need to quote the RGB, Image.new("RGB", (600, 600), (250, 250, 400)) On Tue, Nov 6, 2012 at 11:59 AM, Abha Agrawal wrote: > When I run the follwing code: > > from PIL import Image > Image.new(RGB, (600, 600), (250, 250, 400)) > > it returns > NameError: name 'RGB' is not defined > > Please ad

Re: [Image-SIG] using PIL's split command with color jpg file .. help for color jpg file

2012-12-21 Thread Edward Cannon
r,g,b = im.split() as far as I recall, then each of r,g,b is a grayscale image that is the data that was in the channel. On Wed, Nov 14, 2012 at 10:03 AM, wrote: > I'm using python 2.7 with PIL 1.1.7. > > I figure out how to work with black and white .jpg files. > > I ended up writing a bunch of

Re: [Image-SIG] Current libraries for image processing?

2012-12-21 Thread Edward Cannon
It depends what you want to do. PIL works very well for what it does. If you want to do heavy math, something in scipy or numpy might be more to your taste. if you need support for basic image formats, and need to do a few operations with them (crop, rotate, adjust, add caption etc) PIL works great