ALI KORPEEST. 2024
Automation

Automate or Die: Why Designers Need Python

Ali Korpe
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.

  1. Pillow (PIL): Image manipulation
  2. Selenium: Browser automation
  3. 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.

  1. Scrape data with Python.
  2. Save to JSON.
  3. Import JSON to Figma via a plugin.

Start automating the boring stuff so you can focus on being creative.

Tags:#Python#Automation#Design#Productivity
Ali Korpe

About Ali Korpe

Software developer specializing in Photoshop automation and efficient workflows. Building tools that help creators save time and focus on what matters. Creator of Auto Bulk Mockup.

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.

Have a project in mind?

Whether you need a custom plugin, design work, or just want to say hello.

Let's Work Together