How to show PIL images on the screen?

Bartlomiej Lewandowski picture Bartlomiej Lewandowski · Sep 24, 2012 · Viewed 197.2k times · Source

I am doing some image editing with the PIL libary. The point is, that I don't want to save the image each time on my HDD to view it in Explorer. Is there a small module that simply enables me to set up a window and display the image?

Answer

martineau picture martineau · Sep 24, 2012

From the PIL tutorial:

Once you have an instance of the Image class, you can use the methods defined by this class to process and manipulate the image. For example, let's display the image we just loaded:

     >>> im.show()

Update:

Nowadays theImage.show() method is formally documented in the Pillow fork of PIL along with an explanation of how it's implemented on different OSs.