Files
File commands.
File commands are for loading files into Tatami
Command | Value | Description |
---|---|---|
file-open | target:accept | Opens system file open dialog |
file-download | jpg png | Downloads current image (default format jpg) |
file-export-project | Downloads current project in .sumo format | |
file-open-url | url | Opens image from given URL |
// Request image to be loaded as new project
cmd("file-open")
// Request SVG image and add it as a new layer
cmd("file-open:new-layer:.svg")
// Load image from remote URL (Check CORS!)
cmd("file-open-url:https://sumopaint.com/icon.png")