[Image-SIG] dithering on Image.convert() from "RGB" to "P"

2010-01-11 Thread Bill Janssen
I was just looking into why error diffusion was occurring in my images when I went from RGB to P with a 140-color image. Unexpected. I see in the code that Floyd-Steinberg error diffusion will be applied on conversions from "RGB" to "P", regardless of whether it's needed, unless the optional "dit

[Image-SIG] PIL for Python 3

2010-01-11 Thread Anthony D. Minkoff
Is PIL going to be developed for Python 3, or is it Python 2 only for the foreseeable future? ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] PIL show() not working for 2nd pic

2010-01-11 Thread Gregor Kopka
Hello Suresh, under windows image.show() blocks until the external viewer terminates (this is true at least with default installed viewer that comes with XP), after that the temporary file created by PIL will be unlinked. I have no clue if this is true with gnome under Linux, but in case the

Re: [Image-SIG] PIL how to display multiple images side by side

2010-01-11 Thread Edward Cannon
Manually make a composite image using the paste() function or simillar and then display that one image. On Jan 8, 2010, at 1:43 PM, Suresh Kumar wrote: Hi, In PIL, how to display multiple images in say m rows and n colums when I have m*n images. suresh -- R Suresh Kumar, Phd Studen

Re: [Image-SIG] PIL show() not working for 2nd pic

2010-01-11 Thread Jerome Leclanche
You can write a custom show method to your plugins: def show(self): path = "/home/adys/.cache/%s.png" % "tmpVfBc3s" self.save(path) import os os.popen("eog %s" % path) J. Leclanche / Adys On Fri, Jan 8, 2010 at 11:08 PM, Suresh Kumar wrote: > Hi > > Thanks. Though not mentioned in the PIL 1

Re: [Image-SIG] PIL show() not working for 2nd pic

2010-01-11 Thread Jerome Leclanche
In recent versions of PIL you can do img.show(command="display %s") or something similar (maybe without %s). Otherwise, edit _showxv in (sys.path)/PIL/Image.py J. Leclanche / Adys On Fri, Jan 8, 2010 at 10:49 PM, Suresh Kumar wrote: > Hi, > > How do you do that? Can you elaborate a bit further?

Re: [Image-SIG] PIL show() not working for 2nd pic

2010-01-11 Thread Jerome Leclanche
I'm pretty sure it's a bug in Eye of Gnome. Have you tried hardcoding another program in PIL/Image.py ? (_showxv, iirc) J. Leclanche / Adys On Fri, Jan 8, 2010 at 10:18 PM, Suresh Kumar wrote: > Hi > > Thanks for the reply. > > With one file, it is working correctly. Now I get the following err

Re: [Image-SIG] unable to display two images in PIL

2010-01-11 Thread Dan Halbert
On Thursday, January 7, 2010 5:35pm, "Suresh Kumar" said: > I am using PIL for image processing in ubuntu 9.04. When i give two > im.show() commands for two different images, the second image is not > displayed (eye of gnome is the display program). It says no such file > or directory. Any ideas?

[Image-SIG] OpenGL texture images

2010-01-11 Thread Jef Mangelschots
Hi, the PIL handbook I found covers 1.1.5 (no 1.1.6 handbook available yet) It mentions that the ImageGL portion will be in PIL1.1.6 but only for PIL Plus. When I click the PIL Plus link, it says that this library is no longer available. I have installed PIL 1.1.6 for Python 2.6 When I import Ima

[Image-SIG] OpenGL texture images

2010-01-11 Thread Jef Mangelschots
Hi, the PIL handbook I found covers 1.1.5 (no 1.1.6 handbook available yet) It mentions that the ImageGL portion will be in PIL1.1.6 but only for PIL Plus. When I click the PIL Plus link, it says that this library is no longer available. I have installed PIL 1.1.6 for Python 2.6 When I import Ima

Re: [Image-SIG] Image.show doesn't show image

2010-01-11 Thread Laura & Edward Cannon
I have been running vista for some time, and it dosen't seem to work on vista at all. Which version of the library are you running? On Thu, Dec 31, 2009 at 5:53 AM, wrote: > > I'm running under Microsoft Vista in a pc environment. > > > > The atached PILTest.py yields a  Windows Photo Galery wind

Re: [Image-SIG] Image.show doesn't show image

2010-01-11 Thread Adam Pletcher
I believe "show()" simply opens the image file using the associated viewer app for that filetype. For instance, your script successfully displays the image in XNView on my Vista machine. Start by verifying your file associations are correct for that file extension. Try double-clicking that im