whiskers.git / web / previewgen / README.md
1# previewgen
2
3Draws the link preview from the cat's own data: a 1200 by 630 still card, and the frames of a
4looping video that plays the demo's tour (`site::demo::TOUR`) at 20 frames a second. Output is
5SVG; [`../tools/preview`](../tools/preview) turns it into `card.png` and `loop.mp4`. Words are
6drawn as pixels from an 8 by 8 public-domain face (`font8x8`), so no font is needed and the result
7is the same everywhere.
8
9    cargo run -p previewgen -- frames <dir>        # background.svg, card.svg, frame-0001.svg, ...
10    cargo run -p previewgen -- check-meta page.html # which preview tags a page lacks
11    cargo run -p previewgen -- mascot               # the default mascot, for tools/preview-hash
12
13| Path | What |
14| --- | --- |
15| [src/](src/) | `lib.rs` (the drawing) and `main.rs` (the two commands). |