Back
Any Image → Any Aspect Ratio - After
Any Image → Any Aspect Ratio - Before

This ComfyUI workflow, titled 'Any Image → Any Aspect Ratio', is designed to transform any uploaded image into a new aspect ratio through a process known as outpainting. The workflow utilizes the Nano Banana 2 model, which excels at generating visually coherent extensions of existing images. By leveraging nodes such as LoadImage, ImageCompositeMasked, and GeminiNanoBanana2, the workflow intelligently adapts your image to the desired dimensions and fills in the surrounding areas with content that blends seamlessly with the original. This is particularly useful for maintaining the aesthetic integrity of an image when resizing for different media formats or platforms. The integration of custom nodes like comfyui_essentials and controlaltai-nodes ensures that the process is smooth and efficient, providing high-quality results with minimal user input.