Image Editing

Python 101 – How to Work with Images

The Python Imaging Library (PIL) is a 3rd party Python package that adds image processing capabilities to your Python interpreter. It allows you to process photos and do many common image file manipulations. The current version of this software is in Pillow, which is a fork of the original PIL to support Python 3. Several …

Python 101 – How to Work with Images Read More »

An Intro to Image Processing with Wand / ImageMagick and Python

ImageMagick is an open-source tool that you can use to create, edit, compose, or convert digital images. It supports over 200 image formats. According to its website, ImageMagick can resize, flip, mirror, rotate, distort, shear, and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses, and Bézier curves. For …

An Intro to Image Processing with Wand / ImageMagick and Python Read More »

Converting MP4 to Animated GIFs with Python

Python can be used to read in the common MP4 video format and convert it to an animated GIF. Of course, you can use a pre-built piece of software if you’d rather, but it’s fun (and a good learning experience) to do it yourself. In this tutorial, you will learn the following: How to extract …

Converting MP4 to Animated GIFs with Python Read More »

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 »

Create an Exif Viewer with PySimpleGUI

The Pillow package gives you the ability to extract Exif (Exchangeable Image File Format) metadata from images. You can get a lot of information about your images via the Exif data. However, there are some key data points that are more useful than others. For those pieces of data, it’s nice to create a GUI …

Create an Exif Viewer with PySimpleGUI Read More »