Exports
A story has no PDF: it leaves the browser as images, one per card, and as a film, the same cards played by the blocks of motion. Both come from the same Markdown file as the player.
One image per card
recit export -- captures each card at rest, without the controls, at the scale of the
story (3 by default: 1080×1920 for a 360×640 card). With --all- it writes one folder
per language.
Bash
Code
exports.json lists every file with its size and the id of its card. --image- (png,
jpeg, webp), --scale and --cards override the story's images: settings, which override the
webstory. section of recit.config.
--preset names the pictures of a social network instead of a scale: one folder per preset, each
picture at its size, and the preset written beside each file in exports.json. A preset fits the
story's ratio: instagram- and tiktok a 9:16 story, instagram- a 4:5 one, square
and linkedin- a 1:1 one; another is refused with the aspectRatio to set.
For a preset whose app draws over the picture (instagram-, tiktok), the export measures
each card before the capture: a text or a call to action that crosses a covered margin is a warning
on the console and in the warnings of its file in exports.json, with the sides in pixels of the
preset. recit dev shows the same margins over the card (the Safe area button, or the key G).
Bash
Code
A vertical film
recit render plays the story as a 9:16 film: a card with a type is played by its block, a card
of text by the block its content fits (a title, a list, a statement), a background image by a
panel. A card's dur is its time on screen.
Bash
What a film cannot show is a warning, never a silent loss: a call to action, a color under a block.
A video background becomes a panel shot that plays the video, muted, for the card's duration. -o
(--output) takes a .mp4 file or a folder, out/ by default.
From a film back to a story
The other way has no command: motionToWebstory of @recit/ turns a 9:16 film back
into a story, each shot becoming a card with the same type, props, dur, hold and accent,
its voiceover becoming notes. A film of another aspect is refused with an error, never cropped.
TypeScript
film is the typed source of a format: story (its twin, kind:), and webstory
the twin of the story; recit convert launch. writes its Markdown.
recit convert -- reads only a calendar or a report.
The details are on docs.recit.dev.