bitbof / klecks

Community funded painting tool powering Kleki.com
https://klecks.org
MIT License
232 stars 74 forks source link

Dragging image in not working #137

Open Steammake3 opened 3 months ago

Steammake3 commented 3 months ago

When I tried dragging a image in from another tab, I wanted to add it as a new image. So I drag it to that option, but for some reason the image doesn't get loaded by Kleki at all, It just opened the image in another tab.

https://github.com/user-attachments/assets/0562c0ad-8b4e-4728-8547-3b5213465277

I don't know if this is just a me thing, but it also happened at my library. Not sure if this also happens with new layer, though

bitbof commented 2 months ago

If you right-click > copy image, you can paste it into Kleki, that should work.

Regarding drag & drop from a tab: You'd think Kleki gets access to the image when you drag it in from another tab. But it's actually only a link to the image, which can't be directly loaded client-side due to cross site requests getting blocked, usually (which safer). So, there'd need to be a server that downloads the image from the original source and then send it to the client. That would create additional costs and maintenance. I see some web apps doing that. It's unlikely I'll do that.