Outpaint to Any Aspect Ratio - Nano Banana Pro
Upload your image, input your desired aspect ratio and the images position (as a percentage) in the new aspect ratio composite. Uses Nano Banana Pro to generate an outpainted version of your image to fit the new dimensions.
About
This ComfyUI workflow outpaints a single image to any target aspect ratio without cropping or distorting your original. You load an image with LoadImage, then the custom Image Extender node (b26cc822-68bf-4fd0-b66f-bb3f99cd1443) builds a new canvas based on your chosen aspect ratio and anchors the original at a user-defined position (in percent). Only the newly added canvas area is generated—your original pixels remain intact. Under the hood, the Image Extender wraps the diffusion process using the Nano Banana Pro model to synthesize surrounding content that blends naturally with the source.
What you provide
- Reading the workflow
Runs in ComfyUI. This workflow can't run on this page. Open it in Comfy Cloud with everything loaded, or download it for your own ComfyUI.
Try in CloudQuestions & answers
The Image Extender creates a new canvas sized to your target aspect ratio, then places the original image at the specified X/Y percentages. Percentages map to the canvas: 0% is left/top, 50% is centered, and 100% is right/bottom. The empty regions are filled by Nano Banana Pro, while the original pixels are preserved.
No. The workflow composites the untouched original over the generated content. Only the newly added canvas area is synthesized; the source pixels remain exactly as loaded.
Not strictly. Nano Banana Pro can infer context from the source image, but a short prompt often improves style consistency (e.g., "soft natural light, cohesive background"). You can type a prompt directly in the Image Extender (if available) or use GeminiImage2Node to auto-suggest one from the image.
Keep expansions moderate for the first pass and ensure output dimensions are multiples of 8. If the Image Extender exposes settings like steps or denoise, increase them slightly and re-run. Repositioning the subject (position percentages) to give the model more room on the outpaint side can also help. If VRAM is limited, downscale with ImageResizeKJv2, outpaint, then upscale later.
Related workflows
- Nano Banana Pro, Gemini3 Pro Image Preview, Google
Create a character turnaround
- Nano Banana Pro
Try an outfit on a character
- Nano Banana Pro
Sharpen a product photo
- Flux.2 Dev, Flux.2 Klein, GPT-Image-1.5, Grok, Nano Banana Pro, Qwen-Image-Edit, Seedream
1 input and multiple editing model comparison
- Nano Banana Pro, Google
1.3 Starter - Product Photography
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
3x3 Brand Icon Assets Grid
- Nano Banana Pro, Google
3x3 Grid For Product Ads
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
Add Color to Line Art Illustration
- Gemini3 Pro Image Preview, Google, Nano Banana Pro
Add Product to Character’s Hand, AI UGC
- Gemini3 Pro Image Preview, Nano Banana Pro, Google, ByteDance, Seedance
Apply Texture + Elements to Logo
- Gemini3 Pro Image Preview, Nano Banana Pro, Google, ByteDance, Seedance
Apply Texture to Logo
- Google Gemini Image, Nano Banana Pro, Google, Kling, Kling O1, OpenAI
Character & Outfit to Fashion Video