Re: Python PIL and Vista/Windows 7 .. show() not working ...

2009-12-01 Thread David Robinow
On Mon, Nov 30, 2009 at 12:57 PM, Esmail ebo...@hotmail.com wrote: Hello all. I am using the PIL 1.1.6 and Python 2.6.x under XP without any problems. However, I can't display any images under Vista or Windows 7. I could understand Windows 7 as it's relatively new, but Vista has been around

Python PIL and Vista/Windows 7 .. show() not working ...

2009-11-30 Thread Esmail
Hello all. I am using the PIL 1.1.6 and Python 2.6.x under XP without any problems. However, I can't display any images under Vista or Windows 7. I could understand Windows 7 as it's relatively new, but Vista has been around for a bit. Sample code: import Image im =

Re: Python PIL and Vista/Windows 7 .. show() not working ...

2009-11-30 Thread Esmail
  im = Image.open('c://mypic.jpg') sorry, slip of the finger, there's only one forward slash or you can use two backward slashes. The problem isn't with opening it (I know it opens fine since I can get its size attribute via im.size) - the show() is the problem. Esmail --

Re: Python PIL and Vista/Windows 7 .. show() not working ...

2009-11-30 Thread Stephen Hansen
On Mon, Nov 30, 2009 at 9:57 AM, Esmail ebo...@hotmail.com wrote: Hello all. I am using the PIL 1.1.6 and Python 2.6.x under XP without any problems. However, I can't display any images under Vista or Windows 7. I could understand Windows 7 as it's relatively new, but Vista has been around

Re: Python PIL and Vista/Windows 7 .. show() not working ...

2009-11-30 Thread Lie Ryan
On 12/1/2009 5:04 AM, Esmail wrote: im = Image.open('c://mypic.jpg') sorry, slip of the finger, there's only one forward slash or you can use two backward slashes. The problem isn't with opening it (I know it opens fine since I can get its size attribute via im.size) - the show() is the

Re: Python PIL and Vista/Windows 7 .. show() not working ...

2009-11-30 Thread Esmail
On Nov 30, 3:08 pm, Lie Ryan lie.1...@gmail.com wrote: What's your default image viewer? im.show is intended to be for debugging purpose and may always guaranteed to work if your image viewer doesn't support receiving the file through I don't know how PIL passes the image to the program.

Re: Python PIL and Vista/Windows 7 .. show() not working ...

2009-11-30 Thread David Bolen
Esmail ebo...@gmail.com writes: I dug around in the docs and found a named parameter that I can set when I call show. Definition: im.show(self, title=None, command=None) I installed irfanview and specified it/its path in the parameter, but that didn't work either. It's really quite

Re: Python PIL and Vista/Windows 7 .. show() not working ...

2009-11-30 Thread Esmail
On Nov 30, 4:37 pm, David Bolen db3l@gmail.com wrote: Esmail ebo...@gmail.com writes: I dug around in the docs and found a named parameter that I can set when I call show. Definition:     im.show(self, title=None, command=None) I installed irfanview and specified it/its path in

Re: Python PIL and Vista/Windows 7 .. show() not working ...

2009-11-30 Thread Terry Reedy
Esmail wrote: On Nov 30, 4:37 pm, David Bolen db3l@gmail.com wrote: If that's the issue, there are various ways around it. You could patch PIL itself (same function) to quote the filename when it is constructing the command. Alternatively, the tempfile module has a tempdir global you