Ever needed to expand a photo or graphic beyond its original borders—adding sky to a landscape, extending a product shot, or filling in missing background? Traditional tools leave you with awkward seams or require hours of manual cloning. Enter Image Extender, a free, open-source web app that uses AI to seamlessly extend images in any direction.
What Problem Does It Solve?
Cropped too tightly? Need a wider canvas for a design project? Image Extender lets you add pixels to any side of an image—top, bottom, left, right, or all four—with AI-generated content that blends naturally with the original. The tool uses Google's Gemini model via OpenRouter to generate the extended regions, then applies Poisson blending to eliminate seams, making the transition virtually invisible.
How to Use It
- Upload your image (PNG, JPG, or WebP).
- Choose extension directions—click the arrows to extend left, right, up, or down.
- Set the extension amount in pixels or as a percentage of the original dimensions.
- Generate and pick the best result—the tool creates three variants and lets you choose the one you like most.
- Download the extended image—no watermarks, no sign-up required.
Why It’s Interesting
- Open source: Code available on GitHub for transparency and customization.
- Poisson blending: Ensures color and texture continuity at the seam.
- Best-of-3 picker: AI-generated options give you control over the final look.
- Privacy-first: Images are processed in your browser; no server storage.
Example Use Case
Say you have a portrait with the subject too close to the left edge. Instead of awkwardly cloning the background, upload it to Image Extender, extend the left side by 200px, and the AI fills in the missing context—matching the existing background seamlessly.
# Pseudocode for the blending logic
original_image = load_image('portrait.jpg')
extended = extend_image(original_image, direction='left', pixels=200)
blended = poisson_blend(original_image, extended)
save_image(blended, 'portrait_extended.jpg')
Try it now: Image Extender
Top comments (0)