Build a multi-step image pipeline in n8n: turn one product photo into a cut-out, packshot and web size
说明与用途
n8n 工作流自动将单张产品照片转换为三种版本(透明剪裁、白色包装、网页尺寸),并将永久 URL 写入 Google 表格。
问题
Manual conversion of a single product photo into three required variants (transparent cut‑out, white‑space packshot, web‑size) is time‑consuming and error‑prone when scaling to hundreds of images.
结果
The pipeline processes a new product photo in under a minute, producing three variants with permanent URLs and recording them in a spreadsheet, eliminating duplicate uploads and manual effort.
工作流
- Trigger on new file in Google Drive folder
- Download photo bytes
- Upload photo once to ImageStep (Asset upload)
- Branch 1: remove_bg operation (AI)
- Branch 2: pad operation (deterministic) with 120px white background
- Branch 3: resize operation (deterministic) to ≤1200px width
- Merge branch outputs
- Code node: create one row per variant with file name, variant label, assetId, publicUrl, width, height, jobId
- Append rows to Google Sheet
证据
By hand that is a few minutes per photo, which is fine for five photos and not for five hundred.
One idea keeps it small: upload once, then refer to the image by its id.
The workflow, plus a Node.js version of the same pipeline, is MIT-licensed in the recipes folder of the public SDK repo.
- 记录日期: 2026-11-02T01:44:30.212Z