The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

Paul St George email at paulstgeorge.com
Wed May 30 16:08:45 EDT 2018


Ha! No, my question was clumsy.
If I know the name of the viewer that I want to use (say for example: 
‘ImageMagick’), where do I find the argument that should be used in a 
line of code such as this:
ImageShow.register(MyViewer("gwenview"), -1)
I want to replace ‘gwenview’ with the name of my favourite viewer (for 
example: ‘ImageMagick’).
On 30/05/2018 02:31, Steven D'Aprano wrote:
> On 2018年5月29日 20:02:22 +0200, Paul St George wrote:
>>> Is there, somewhere, a list of viewers and their names (for the purposes
>> of this script)?
> Do you mean a list of programs capable of viewing graphics? Do you think
> there is some sort of central authority that registers the names of all
> such programs? *wink*
>>> You can start here:
>> https://en.wikipedia.org/wiki/Category:Graphics_software
>> but that's probably the closest you're going to get.
>>>
-- 
Paul St George
http://www.paulstgeorge.com
http://www.devices-of-wonder.com
+44(0)7595 37 1302


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /