When toying with images in the python shell, I use image.show(), where image is an instance of Image. Long ago nothing happened, but after defining a symlink to mirage named “xv”, I was happy.
The last few days, show() will bring up both ImageMagick’s display and also Mirage. It’s not clear where show() gets information on what to run. Documentation wasn’t helpful. How to make it behave and bring up only what it thinks is xv?
Well, for one thing, im.show is only intended for debugging purpose, it isn’t guaranteed to work.
Nevertheless, you can always look at the source (open “pydoc PIL”, the FILE section points out where a module is located):
In Windows, PIL will use “start /wait filename”
In Macs, it uses “open -a /Applications/Preview.app”
and on Linux, either ‘display’ if found or otherwise ‘xdg-open’.