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 Cloud
Output
Example
Sample output

Questions & answers