Production engines

Render a design to a print-ready PNG.

Renders 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.

post/api/agents/run/art_render

Request

  • Base URL: https://tomorrowlives.com
  • URL: https://tomorrowlives.com/api/agents/run/art_render
  • Auth: HTTP bearer

Request body

designobject required

The print design document, written inline as JSON. Start from art_starter and check it with art_check.

widthinteger

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.

preview_widthinteger

Width in pixels of the small preview image written beside the print.

preview_onstring

Background colour for the preview as #rrggbb, so a design with transparency can be judged on a shirt colour.

Response

The job's result and files

jobstring
verbstring
unitsinteger
msinteger
resultunknown

Changes

No recorded changes to this operation across all 1 revision of this API.