Graphic Design Recomposer takes any existing graphic (logos, posters, social tiles, UI mockups) and reformats it to a new aspect ratio without manual layout work. The workflow is intentionally lean: LoadImage ingests your source file, a custom recomposition node (UUID 172f1008-9337-4d2f-9212-ee081cb4faf5) analyzes the target aspect and adapts the layout, and SaveImage writes the final result. Depending on your settings, it can scale-to-fit with letterboxing, crop-to-fill, or extend the canvas and synthesize new surrounding content for a seamless look.

Technically, the recomposer node computes the optimal scale and offset for the source image relative to the requested aspect ratio, then applies one of three strategies: smart crop, letterbox padding, or canvas expansion with outpainting. For outpainting, the node builds a border mask around the newly created areas and fills them using context from adjacent pixels to minimize visible seams—no prompt required. Feathering around mask edges and adaptive blending reduce halos or sharp transitions. The result is saved via SaveImage, making it quick to generate multiple aspect variants ready for web, print, or social placements.

This is especially useful when you need consistent assets across 1:1, 4:5, 16:9, or 9:16 formats without redrawing layouts. By keeping the pipeline simple and node-local (LoadImage → 172f1008-9337-4d2f-9212-ee081cb4faf5 → SaveImage), you get predictable results with minimal setup, and you can iterate fast by adjusting aspect, crop/fit/extend behavior, and seam smoothing.

API

通过代码使用此工作流

每个 Comfy 工作流都是一个 JSON 图。下面的内容就是此工作流的完整数据,ComfyUI 运行时也是如此——你可以从该 URL 获取、放入版本控制,或在 ComfyUI 中加载并逐节点运行。

4a6697085e75.json
正在获取工作流 JSON…

使用 Comfy SDK 从 TypeScript 或 Python 运行。相同代码可用于 Comfy Cloud 或你自托管的 ComfyUI——只需更改基础 URL。

// Install (beta)
npm i @comfyorg/sdk

// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

SDK 需要 API 格式的工作流:在 ComfyUI 中打开此工作流,使用 文件 → 导出工作流(API)。

Comfy Cloud API 访问需要包含 API 密钥的套餐。

常见问题

常见问题

查看所有工作流
Showing 30 of 30 templates