ZMYaro / paintz

A simple drawing app that runs in a web browser, designed to be an MS Paint substitute for Chromebooks and other Chrome OS devices. PaintZ is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
https://paintz.app
53 stars 11 forks source link

Add support for pasting image files copied from the file browser #195

Closed ZMYaro closed 3 years ago

ZMYaro commented 3 years ago

If the user pastes and the clipboard entry contains no raw image data, but does contain an image file, insert the file like a pasted image.

ZMYaro commented 3 years ago

This does not appear possible—at time of writing, attempting to paste an image file copied from Windows Explorer with the browser's paste function may or may not work depending on the browser (e.g., works in Chrome, but not Firefox), but attempting to paste it via the clipboard API returns DOMException: No valid data on clipboard. It appears Photopea also ran into this issue.