擴展圖片

延伸你的圖像,填補周圍場景。

Input

What should appear in the new area (used when Describe automatically is off).

The photo to extend; its pixels are kept and the canvas around it is filled.

Shape of the extended image.

On: a local vision model writes what fills the new area. Off: your description is used.

Size of the extended image.

Where the original sits in the new frame.

Advanced settings

Fast 4-step LoRA; off runs 30 full steps.

Leave empty for a new result each run. Enter a number to repeat one.

Output
Output
Example

試試範例

關於此工作流程

Expand Image 是一個引導式外擴繪(outpainting)工作流程,可將單張照片延伸到任何目標長寬比,而不裁切或扭曲原始像素。它會先用平坦的綠色底將圖片包裹到新的畫布尺寸,然後使用 Qwen Image Edit 2511 只替換綠色區域,生成可信的場景延伸。核心工具節點——GetImageSize、ImageResizeKJv2、CustomCombo 以及 ComfyNumberConvert——會計算新尺寸與邊距,讓來源影像維持置中且不被改動,而周圍框架成為可編輯區域。

為了讓新增內容在風格與主題上保持一致,工作流程可使用 TextGenerateLTX2Prompt 與你設定的本機 VLM 後端,自動為缺失區域撰寫場景延伸 caption,接著由 JsonExtractString 解析結果。ComfySwitchNode 可讓你在自動 caption 與你在 PrimitiveStringMultiline 手動輸入的描述之間切換。最終指令會由 StringConcatenate 組合,並與 CLIPLoader(需要文字條件設定時)一起引導 Qwen Image Edit 2511 合成與可見照片一致的光線、材質與透視。PreviewAny 與 ImageCompare 可協助你評估變更,SaveImageAdvanced 會儲存外擴繪結果與中繼資料,以利重現。

問答