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 »

An Intro to Python’s Built-in Functions

Built-ins are a somewhat overlooked part of Python. You use them every day, but there are a number of them that get overlooked or just aren’t used to their full potential. This article won’t be covering all the built-ins in Python, but will focus on the ones that you probably don’t use every day. any() …

An Intro to Python’s Built-in Functions Read More »

Creating an Image Viewer with PySimpleGUI

PySimpleGUI makes creating applications easy. In this tutorial, you will learn how to use PySimpleGUI to create a simple Image Viewer. You will be using the regular version of PySimpleGUI, which wraps Tkinter, rather than its wxPython or PyQt variants. Let’s get started! Getting Started You need to install PySimpleGUI as it is not included …

Creating an Image Viewer with PySimpleGUI Read More »

PySimpleGUI: Drawing Text on Images with a Python GUI

The Pillow package lets you draw text on images using Python. This includes using TrueType and OpenType fonts. You have a lot of flexibility when adding this text to your images. If you’d like to know more, you should check out Drawing Text on Images with Pillow and Python. Note: The code and fonts used …

PySimpleGUI: Drawing Text on Images with a Python GUI Read More »

Drawing Text on Images with Pillow and Python

Pillow supports drawing text on your images in addition to shapes. Pillow uses its own font file format to store bitmap fonts, limited to 256 characters. Pillow also supports TrueType and OpenType fonts as well as other font formats supported by the FreeType library. In this chapter, you will learn about the following: Drawing Text …

Drawing Text on Images with Pillow and Python Read More »