Image Editing

Creating a Warhol Triptych Image with Pillow and Python

Andy Warhol is a well-known artist who created a famous image where there are multiple copies of the same face but with different background colors. You can do a similar trick with software using Python and the Pillow package. You will also need to have NumPy installed to make this work. Let’s find out how …

Creating a Warhol Triptych Image with Pillow and Python Read More »

Converting an Image to ASCII with Python

There are lots of fun Python snippets out there that you can use to convert your photos into ASCII art. Anthony Shaw, an author, and contributor at Real Python, has his own snippet on GitHub. Most of these small programs use the Pillow package. These programs work best with simple images, especially ones that don’t …

Converting an Image to ASCII with Python Read More »

PySimpleGUI – How to Draw Shapes on an Image with a GUI

Drawing shapes on images is neat. But wouldn’t it be nice if you could draw the shapes interactively? That is the point of this tutorial. You will create a user interface using PySimpleGUI to allow you to draw shapes on images! The purpose of this user interface is to show you how you can make …

PySimpleGUI – How to Draw Shapes on an Image with a GUI Read More »

Drawing Shapes on Images with Python and Pillow

Pillow provides a drawing module called ImageDraw that you can use to create simple 2D graphics on your Image objects. According to Pillow’s documentation, “you can use this module to create new images, annotate or retouch existing images, and to generate graphics on the fly for web use.” If you need more advanced drawing capabilities …

Drawing Shapes on Images with Python and Pillow Read More »