Render a print design
art_renderRenders a design to a PNG with its DPI written in. Without width it renders the canvas at full print size (a shirt-front is 4500 x 5400). width renders a draft that many pixels wide. A render 1200 pixels wide or less costs 1 unit; anything wider costs 5. preview_width adds a small preview, and preview_on sets the shirt colour behind it. Returns print.png (and print.preview.png) as signed URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Output width in pixels. Omit it to render the canvas at full print size; a width above the draft limit is a full-size print and costs more. | |
| design | Yes | The print design document, written inline as JSON. Start from art_starter and check it with art_check. | |
| preview_on | No | Background colour for the preview as #rrggbb, so a design with transparency can be judged on a shirt colour. | |
| preview_width | No | Width in pixels of the small preview image written beside the print. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | Milliseconds the run took. | |
| job | Yes | The job id; the job tool reads it. | |
| verb | No | The tool that made it. | |
| files | No | Files made, each with a name, type, size and a signed URL. | |
| units | No | Units this call cost. | |
| result | No | The engine's own answer, a JSON document. | |
| status | No | queued when the job runs in the background. |