Tutorials

One Pixel at a Time: DIY Image Manipulation with Pillow for Fun and Profit

Thursday, May 14th, 2026 1:30 p.m.–5 p.m. in Room 101B

Presented by

Ariel Ortiz

Description

Modern Python developers often treat image processing as a black box, relying on high-level libraries to resize, filter, or encode data. While efficient, this abstraction hides the fascinating mathematical foundations of digital media. This tutorial peels back those layers, teaching you how to manipulate images by interacting with their most fundamental element: the individual pixel.

Using the Pillow image library as a lightweight bridge to handle file I/O, we will bypass its automated methods to implement our own algorithms from scratch. We will treat images as raw grids of numerical data, learning how to traverse and transform them using Python’s core logic.

What you’ll discover in this tutorial: - Shades of Gray: Write the math to convert color pixels into grayscale values. - The Geometry of Scaling: Write the logic to map pixel coordinates to change the size of an image. - The Warhol Effect: Programmatically tile and re-map color palettes to create a multi-panel pop art masterpiece. - Steganography: Hide secret messages within an image by staining pixels with hidden data that remains invisible to the eye but accessible to your code.

You will have fun by transforming ordinary photos into creative digital art and “spy-craft” hidden messages. You will profit by gaining a deep, low-level understanding of data manipulation that makes you a more versatile programmer and problem solver.

Prerequisites: This tutorial is designed for early-intermediate Pythonistas comfortable with functions, nested loops, lists, and basic arithmetic. No prior experience with image processing or advanced mathematics is required.

Search