mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
BUG: Windows image viewer unable to open image
The issue was reported several times during the past years. The temporary bitmap file is deleted before the image viewer is started. The workaround is to wait some time before deleting the file. http://stackoverflow.com/questions/4607633/image-format-to-save-in-python http://stackoverflow.com/questions/7715501/pil-image-show-doesnt-work-on-windows-7
This commit is contained in:
parent
e09ff61b81
commit
dbf3d993ed
|
@ -98,7 +98,8 @@ if sys.platform == "win32":
|
|||
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user