rainbowstream
rainbowstream copied to clipboard
Better "show image" implementation?
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.
I can get behind this as a feature request. I'd love to be able to specify which image viewer to use.
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?
I found the answer (here)[http://stackoverflow.com/questions/16279441/image-show-wont-display-the-picture].
After installing imagemagick
it works!
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