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
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:
diff -r 142e08f1b589 PIL/ImageShow.py
--- a/PIL/ImageShow.py Sun Aug 01 22:00:26 2010 +0200
+++ b/PIL/ImageShow.py Wed Jan 05 10:46:47 2011 -0800
@@ -97,7 +97,7 @@
class WindowsViewer(Viewer):
format = "BMP"
def get_command(self, file, **options):
- return "start /wait %s && del /f %s" % (file, file)
+ return "start /wait %s && ping -n 2 127.0.0.1 >NUL && del /f %s" % (file, file)
register(WindowsViewer)