I am using pydot to save an image file on my machine and then use the Image module to open the file. However, I get an error using Windows Photo viewer. The image cannot be opened because it is deleted or is in unavailable location. This is incorrect as the image gets saved to my Desktop.
Sometimes, randomly, the picture does gets opened, but takes a lot of time. Why am I getting this problem?
I have an option to save the image in any format. Is there an image format that one could save that would take comparatively less time opening via Python, or do all formats take the same time?
This looks like a known bug in the image viewer of PIL on Windows Vista/7. You can try to fix PIL/ImageShow.py as follows: