[Tutor] How do I display a picture?
mysecretrobotfactory at gmail.com
Wed May 17 21:15:54 EDT 2017
If all PIL does with .show() is to invoke the system default image viewer,
why would it pop an empty console window?
the existence of this window causes the script to hang, so i have to so far
manually close it before the script would continue to run.
On Wed, May 17, 2017 at 6:03 PM, Alan Gauld via Tutor <tutor at python.org>
> On 18/05/17 00:24, Michael C wrote:
> > or to find another way to display the picture without using python image
> > library.
> There are lots of ways it depends on what you actually want
> to do with the image. For example you can run your favourite
> image viewer program(that looks like what PIL is doing)
> Or you could create a temporary html file with an img tag
> pointing at the image, then open your browser on that file.
> Or you can create a simple GUI and put the image into a
> canvas component.
> Or you could use a different image editing module like
> the ImageMagik module(forgotten the name) or Blender.
> It just depends what you need it for which solution suits.
> Alan G
> Author of the Learn to Program web site
> Follow my photo-blog on Flickr at:
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
More information about the Tutor