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 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 for a bit. >

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 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 could set to some oth

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

2009-11-30 Thread Esmail
On Nov 30, 4:37 pm, David Bolen wrote: > Esmail 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 t

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

2009-11-30 Thread David Bolen
Esmail 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 puzzling in

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

2009-11-30 Thread Esmail
On Nov 30, 3:08 pm, Lie Ryan 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 the image to the program>. It's whatever the default windows viewer is

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 pr

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 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 for a bit. >

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 -- http://mail.python

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 = Image.open('c://mypic.jpg