Skip to content

Drag-and-drop images onto the canvas

Drag-and-drop is the fastest way to bring references onto a board. Parse files and items from the drop event, then decode images asynchronously—see asset topics in Lesson 10.

Sanitize size and dimensions to protect memory on large pastes.

Interactive demo

Released under the MIT License.