QR 워크플로우
QR 생성 → UI용 크기 조절
QR 이미지를 생성하고 서비스 UI에 맞는 크기로 다시 조절합니다.
qr-code-generator
→resize-image
입력Text / URL data
최종 결과Sized QR image
사용 Toolqr-code-generator → resize-image
전체 코드
const qr = await client.run("qr-code-generator", {
data: {
content: "https://example.com"
},
options: {
size: 1024,
format: "png"
}
});
const sized = await client.run("resize-image", {
file: qr.files[0],
options: {
width: 320,
keepAspectRatio: true,
format: "png"
}
});
const qrForUi = sized.files[0];
이 레시피를 수정하기 전에 client.describe(toolId) 또는 Tool 명세 페이지에서 정확한 파일 제한, 옵션 값과 지원 모드를 확인하세요.