SDK 레시피›상품 전단 → 상품 분리 → 이미지 보정
Image 워크플로우

상품 전단 → 상품 분리 → 이미지 보정

전단 이미지를 상품별로 분리하고 생성된 각 이미지를 자동 보정합니다.

product-flyer-splitter
→
image-enhancer × N
입력Flyer image
최종 결과Enhanced product images
사용 Toolproduct-flyer-splitter → image-enhancer

전체 코드

const split = await client.run("product-flyer-splitter", {
  file: flyerFile,
  options: {
    rows: 2,
    columns: 3,
    format: "jpg"
  },
  output: {
    archive: false
  }
});

const products = await Promise.all(
  split.files.map(async (productFile) => {
    const enhanced = await client.run("image-enhancer", {
      file: productFile,
      options: {
        preset: "balanced",
        auto: true,
        format: "jpg",
        quality: 0.9
      }
    });

    return enhanced.files[0];
  })
);

console.log(products);
이 레시피를 수정하기 전에 client.describe(toolId) 또는 Tool 명세 페이지에서 정확한 파일 제한, 옵션 값과 지원 모드를 확인하세요.