PIL + show() + Vista

Cousin Stanley cousinstanley at gmail.com
Fri Nov 30 02:30:41 CET 2007


> This code: 
>     import Image
>     img = Image.open(r"D:\ParisNude.jpg")
>     img.show()
>
> Don't run on my Vista computer.
>
> I have a solution:
    import Image,os
    img = Image.open(r"D:\FLundhNoNude.jpg")
    os.startfile(img.filename)
> ....

Michel ....

  As an alternative you might also try passing the path 
  to your favorite image viewer as a parameter to the 
  command argument of the image show method .... 

  iview = "/mnt/win_c/Program Files/IrfanView/i_view32.exe"

  im.show( command = iview )


-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona




More information about the Python-list mailing list