This bug has been fixed before (bug 133078), but obviously the patch
got lost in the shuffle somewhere since then. I'd say the approach of
using see rather than explicitly calling display is probably correct
as python-imaging already has a dependency on mime-support (although
that's mime-support | python-imaging-tk).
The original patch was essentially:
--- PIL_orig/Image.py 2007-02-23 12:48:58.000000000 +0200
+++ PIL_1.1.3/Image.py 2007-02-23 13:16:00.000000000 +0200
@@ -1896,9 +1896,7 @@
else:
format = None
if not command:
- command = "xv"
- if title:
- command = command + " -name \"%s\"" % title
+ command = "see"
if image.mode == "I;16":
# @PIL88 @PIL101
The created temporary filename doesn't have an extension, which, at
least here, causes problems for see. To address that, I'd propose a
patch more like:
--- PIL_orig/Image.py 2007-02-23 12:48:58.000000000 +0200
+++ PIL/Image.py 2007-02-23 13:20:22.000000000 +0200
@@ -1894,11 +1894,10 @@
if not command:
command = "open -a /Applications/Preview.app"
else:
- format = None
+ # specify format so we don't need to specify mime-types
+ format = "PNG"
if not command:
- command = "xv"
- if title:
- command = command + " -name \"%s\"" % title
+ command = "see"
if image.mode == "I;16":
# @PIL88 @PIL101
--
Neil Muller
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]