Re: [Tutor] How do I display a picture?
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 Tutorwrote: > 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 > http://www.alan-g.me.uk/ > http://www.amazon.com/author/alan_gauld > Follow my photo-blog on Flickr at: > http://www.flickr.com/photos/alangauldphotos > > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] How do I display a picture?
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 http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] How do I display a picture?
I use python image library and apparently when I do im = Image.open('1.png') im.show() show() actually opens a empty console window that doesn't do anything and as long as it's around the script hangs. Currently I have to close it by clicking on the close button and it makes my script useless. so i am trying find either a way to prevent that from poping up or to close it automatically somehow or to find another way to display the picture without using python image library. On Wed, May 17, 2017 at 4:13 PM, Alan Gauld via Tutorwrote: > On 17/05/17 21:33, Michael C wrote: > > > How do I display a picture? > > What do you mean? What kind of picture? > Where do you want it displayed (what kind > of window/screen)? > > There are a dozen possible ways to "display a picture" > depending on what you specifically want. > > -- > Alan G > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > http://www.amazon.com/author/alan_gauld > Follow my photo-blog on Flickr at: > http://www.flickr.com/photos/alangauldphotos > > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] How do I display a picture?
On 17/05/17 21:33, Michael C wrote: > How do I display a picture? What do you mean? What kind of picture? Where do you want it displayed (what kind of window/screen)? There are a dozen possible ways to "display a picture" depending on what you specifically want. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] How do I display a picture?
Hi all, How do I display a picture? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor