PDA

View Full Version : Displaying Images


agrima
07-02-2014, 06:27 AM
Hi,

I am trying to create a 3d image from a depth map. But when i try to display the .jpg file the windows photo viewer gives an error saying:

"WINDOWS PHOTO VIEWER CAN'T OPEN THIS PICTURE BECAUSE EITHER THE PHOTO IS DELETED OR IS IN A LOCATION WHICH ISN'T AVAILABLE".

but neither have i deleted my photo and it is in t same location where my vizard file is stored.

here is the code:

from PIL import Image
im=Image.open("IMG_1930.jpg")
im.show()

Jeff
07-02-2014, 05:28 PM
You can try changing the default image viewer for .bmp files on your machine. It seems the PIL show() function saves the image to bitmap format before displaying it with the viewer. Other than that, you might search online for more information since this is not a Vizard error.