mechanic
mechanic copied to clipboard
Output options
It would be nice to have output options, so a) the developer can decide what formats it can be exported to and b) users are able to select the export format (if multiple are available)
This is a wishlist of possible formats to export to by type of output. Some are harder to pull off than others, and we may decide not to do some, or make them optional via plugins:
-
static svg
svg, png, webp, jpg, gif, pdf (via svg2pdf) -
static canvas
: png, jpg, webp, gif -
animated
webm, gif (via gif-encoder), mp4 (there is ffmpegwasm but it's very large and hacky)
Might also be worth checking out for outputting various video formats: https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API