Files

File commands.

File commands are for loading files into Tatami

CommandValueDescription
file-opentarget:acceptOpens system file open dialog
file-downloadjpg pngDownloads current image (default format jpg)
file-export-projectDownloads current project in .sumo format
file-open-urlurlOpens 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")