QR Workflow
Generate QR → Resize for UI
Generate a QR image and resize the returned image for a specific UI placement.
qr-code-generator
→resize-image
InputText / URL data
Final resultSized QR image
Tools usedqr-code-generator → resize-image
Complete code
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];
Before adapting this recipe, use client.describe(toolId) or the Tool Reference page to verify exact file limits, option values, and supported modes.