Pillow

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 »

Pillow: Image Processing with Python Now Available!

Pillow: Image Processing with Python is my latest book on the Python programming language. The paperback and Kindle versions are now available on Amazon. The paperback version of the book is in full color. That is why it more expensive than any of my other books to purchase. I put together a little video where …

Pillow: Image Processing with Python Now Available! 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 »

Pillow: Image Processing with Python Available for Pre-order

Pillow: Image Processing with Python is my latest book on Python. It is now available for pre-order. What that means is that you can purchase an early version of the book and get all the updates to it for free after purchase, including the final edition. The final edition will be done in April 2021. …

Pillow: Image Processing with Python Available for Pre-order 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 »

How to Add a Border to Your Photos with Python

Sometimes it’s fun to add a simple border to your photos. The Pillow package has a very easy method of adding such borders to your images via its ImageOps module. As usual, you will need to have Pillow installed to do any of the examples in this article. If you don’t have it already, you …

How to Add a Border to Your Photos with Python Read More »

How to Watermark Your Photos with Python

When you look up photos online, you will notice that some of them are watermarked. A watermark is usually some text or a logo overlaid on the photo that identifies who took the photo or who owns the rights to the photo. Some professionals recommend adding watermarks to your photos before sharing them on social …

How to Watermark Your Photos with Python Read More »