Draws one to three distinct layouts of a template in a design, before any video exists, and answers a picture of each. The design is checked and applied exactly as a build checks and applies it, so a layout's picture shows the colours, fonts and logo a built slide takes from it. The template's placeholder texts are drawn, the design's logo is drawn in each layout's logo slot (a slot is removed when the design has no logo), and avatars are not drawn. With design.fonts, the placeholder texts are first fitted as a build fits its own, since a wider font may not fit their boxes: they widen and push the texts below them down. A placeholder longer than its box holds is cut at a word, ending in …, and the layout fitted again, three times at most; one whose overflow is a single word too wide for its line is left whole. A layout that still does not fit is drawn at the template's own positions. Nothing is saved to any video, and no credits are spent.
Each picture is a WebP at height (40 to 1080, default 720; the width follows 16:9), stored privately and answered as a URL signed for 7 days. The same layouts in the same design at the same height are drawn once and answered from storage after that.
The design's refusals are the build's: 409 with code: template_revision_changed, or 400 with codedesign_colours_mismatch, design_pairs_mismatch, unknown_font, logo_not_hosted or logo_unreadable. A slide id that is not one of the template's layouts answers 400 with code: unknown_slide, naming them in unknown. When the renderer fails, cannot load one of a layout's photos or takes longer than 55 seconds, the call answers 502 with code: render_failed and stores nothing; try again.
Recent Requests
Log in to see full request history
Time
Status
User Agent
Retrieving recent requests…
Loading…
Responses
403
The caller's role cannot edit videos.
404
No lesson template has this id (code: unknown_template).
409
The design was computed for a revision of the template this environment does not hold (code: template_revision_changed).
502
The renderer drew no picture, could not load one of a layout's photos, or took longer than 55 seconds (code: render_failed).
Updated about 1 hour ago
Did this page help you?
Yes
No
Language
ShellNodeRubyPHPPython
Credentials
Header
Header
Loading…
Response
Click Try It! to start a request and see the response here! Or choose an example: