(Almost) seamlessly edit your images from within vscode!
Editing images in current workspace only works if both, image and data files are saved
- Scan QR
- Web app hosted in server in vscode opens
- Save button posts to web server running in vscode. Image is changed (data file and png file)
Editing images from online vsdraw
- Scan QR
- Online or local vsdraw is opened on device
- Save button creates new version.
===> Also posts new version to vscode server which updates link in markdown.
=> Local vscode server endpoint taking new image url
markdown want have drawing
possible worklfow for add new
- keyboard shortcut: draw
- browser opens with some website that allows for drawing
- copy drawing url as markdown
- go back to vscode and insert
possible workflow for edit
- have cursor inside drawing link in markdown
- keyboard shortcut or some light bulb thingy for edit
- url opens up for edit (url that is a png or jpg url must be converted to go back to the editor)
- do changes ...
implementation
- Editor online that saves image data automatically
- copy as md link button
- stores data in cloud (API)
- generates jpg or png link and returns that (API, API endpoint returning the image for that link)
- page js wraps link with markdown and to clipboard
- editing: vscode extension changes the link to editable url
API
- receive editable image data + image, return json containing editable and image link
- receive editable link, return editable data
- receive image link, return image
Roadmap:
- multi device editing (i.e. code on mac, draw on ipad)
- vscode extension: log in
- vscode extension: hit edit
- ipad website: log in
- ipad website: popup if want to start editing
- vscode plugin downloads image and puts into project
drawerjs literally canvas react-sketch