September 14, 2021 by
Mike 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 […]
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 […]
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 […]
Animated GIFs are an image type that contains multiple images with slight differences. These are then played back kind of like a cartoon is. You could even think of it as a flip-book with a stick man that is slightly different on each page. When you flip the book, the image appears to move. You […]
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 […]
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 […]