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.

Supporting nodes make the process clear and repeatable: GetImageSize reads the source dimensions, ImageResizeKJv2 optionally scales inputs or outputs for cleaner detail, and PreviewImage/ImageCompare help you evaluate before/after results. If you prefer guided generation, GeminiImage2Node can provide an image-aware prompt that feeds into the Image Extender. When you’re satisfied, SaveImage writes the final outpainted result. The combination of precise placement controls, aspect ratio targeting, and a capable outpainting model makes this a practical tool for repurposing images for social, web, and print formats without losing key content.

FAQ

常見問題

查看所有工作流
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 579 templates