Automation
Ali Korpe June 10, 2024 1 min read
Automate or Die: Why Designers Need Python

The Manual Trap
I see designers saving files manually: File > Export > Save for Web. Repeat.
This is why you are burning out.
Why Python?
It's readable, powerful, and has libraries for everything relevant to image processing.
- Pillow (PIL): Image manipulation
- Selenium: Browser automation
- Pandas: Data handling for CSVs
Example: Batch Resize
from PIL import Image
import os
folder = "./images/"
output = "./resized/"
for filename in os.listdir(folder):
img = Image.open(f"{folder}{filename}")
img = img.resize((800, 600))
img.save(f"{output}{filename}")
This 8-line script just saved you 2 hours of work.
Integrating with Figma
Figma's Plugin API uses JavaScript/TypeScript, but you can use Python to prepare the data.
- Scrape data with Python.
- Save to JSON.
- Import JSON to Figma via a plugin.
Start automating the boring stuff so you can focus on being creative.
Tags:#Python#Automation#Design#Productivity
Get plugin tips in your inbox
Join 2,000+ developers and creators. I share tips on Photoshop automation, UXP development, and indie hacking. No spam, ever.