wonderunit / storyboarder

✏️ Storyboarder makes it easy to visualize a story as fast you can draw stick figures.
https://wonderunit.com/storyboarder
3.2k stars 298 forks source link

Thumbnail generators #343

Closed audionerd closed 7 years ago

audionerd commented 7 years ago

exporters/common#exportFlattenedBoard (file-based thumbnail exporter) Generates a flattened image file, given the board data and an absolute path to the files on disk. Requires a size option, so it can be used to generate thumbnails. Returns a Promise which resolves with the absolute path to the exported file. Used by: multiples, pasting multiple images, importing multiple images, photoshop import

exporters/common#flattenBoardToContext (canvas-based, generate thumbnail from canvases in-memory) Draws a flattened board to context Knows about opacity Used by: thumbnail display

audionerd commented 7 years ago

Moving the integration of these functions to a new issue https://github.com/wonderunit/storyboarder/issues/381