Building a Prompt-Based AI Photo Editor in the Browser with Full Undo History
Editing a product photo or portrait usually means opening a heavy desktop suite, learning masks and layers, and spending 20 minutes on a simple lighting or background tweak. Over the past few months, we built Saypix — a
Editing a product photo or portrait usually means opening a heavy desktop suite, learning masks and layers, and spending 20 minutes on a simple lighting or background tweak.
Over the past few months, we built Saypix — a prompt-based online AI photo editing studio that lets anyone upload an image and describe edits in plain English.
Why Prompt-Based Editing Works Better for Everyday Workflows
Instead of hunting through dozens of sliders and brush tools, most real-world edits are easy to express in a sentence:
- "Warm up the studio lighting and remove the coffee cup on the left"
- "Replace the cluttered room background with a clean minimal studio backdrop"
- "Fix harsh shadows on the subject while keeping natural skin texture"
With Saypix, each instruction runs as a discrete edit step directly in the browser, exporting clean watermark-free images in seconds.
Design Lessons We Learned Along the Way
- Non-destructive Undo History Matters: Generative edits can sometimes overshoot. Keeping a full step-by-step undo history lets users branch, compare, and step back without re-uploading or losing earlier adjustments.
- Zero-Friction Browser UX: Eliminating desktop installs and complex layer panels makes quick e-commerce and social media retouching dramatically faster.
- Predictable Local Retouching: Combining natural-language intent with targeted editing preserves subject identity, product labels, and fine details rather than regenerating the whole frame.
If you frequently adjust lighting, swap backgrounds, or clean up distractions in product shots and portraits, you can try the studio online at https://saypix.io.
Would love to hear how other builders handle iterative prompt-based image editing and version history in browser apps!
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.