rainbowstream icon indicating copy to clipboard operation
rainbowstream copied to clipboard

Better "show image" implementation?

Open terinjokes opened this issue 8 years ago • 4 comments

PIL's img.show() is meant for debugging, which means the implementation is a bit naive: it doesn't attempt to use the user's configured image viewer at all: a few are simply hard coded.

Can you change the implementation to call the OS's default open? open on OSX, xdg-open on Linux and using Python's os.startfile() on Windows?

Right now images open for me in ImageMagic's display, which needless to say, isn't my preferred viewer.

terinjokes avatar Apr 04 '16 10:04 terinjokes

I can get behind this as a feature request. I'd love to be able to specify which image viewer to use.

eeyun avatar Jun 24 '16 04:06 eeyun

I've been looking for a workaround for this. I've been having an issue where show image just doesn't do anything on Peppermint OS. I see here that I should figure out what the hard coded image viewers are and install one. I think?

mobiuscoffee avatar Sep 26 '16 09:09 mobiuscoffee

I found the answer (here)[http://stackoverflow.com/questions/16279441/image-show-wont-display-the-picture].

After installing imagemagick it works!

mobiuscoffee avatar Sep 26 '16 09:09 mobiuscoffee

Would you consider adding support for inline image display in iterm? It's a custom extension on the xterm protocol, but the nicest way to show images imho.

https://www.iterm2.com/documentation-images.html

rogercampos avatar May 21 '17 22:05 rogercampos