Who it is forA social media manager who needs a landscape crop from a portrait photo.
The problemChanging aspect ratio usually means cropping important content.
The outcomeA wider image with generated edges that match the original.
What you need first
- GIMP 3 (tested on 3.2.6)
- A local ComfyUI install
- A graphics card (tested on an 8 GB laptop GPU) or Apple silicon
Steps
- On macOS or Linux set up ComfyUI in a venv and run
sh install.sh --comfy-dir ~/ComfyUI - Open the image and enlarge the canvas
- Run Generative Expand
- Export at the new size
Prompt for your agent
Expand <image> to <aspect ratio> with OpenFill's Generative Expand in GIMP and export it. Check the seams for visible artifacts.
Caveat. It has been tested end to end on Windows, Fedora Linux with a Flatpak GIMP, and an Apple M3 Mac.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for beckettharriman/gimp-openfill and "Expand a photo's canvas with generated scenery"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer