pasteimages icon indicating copy to clipboard operation
pasteimages copied to clipboard

Allow user to add images also from clipboard files and clipboard image URLs

Open holgerbrandl opened this issue 9 years ago • 7 comments
trafficstars

holgerbrandl avatar Jun 28 '16 13:06 holgerbrandl

like this Atom plugin: https://atom.io/packages/qiniu-uploader

you can paste image directly into a url link , it will upload the image to a cloud storage

yunlux avatar Mar 08 '18 22:03 yunlux

I think adding cloud storage support would be a different ticket. Feel welcome to provide a PR.

holgerbrandl avatar Mar 09 '18 07:03 holgerbrandl

looks like this fork https://github.com/ITGrocery/markdown-image-paste / https://plugins.jetbrains.com/plugin/10001-markdown-image-paste is doing it. I wonder if the source code is based on this plugin without any attribution to the original source?

lhotari avatar Feb 06 '19 08:02 lhotari

Thanks for the pointer @lhotari . Indeed, it started off with this plugin's codebase, which is good and intended, To be fair, there's a pointer at the end of the Readme. However, they ditched all the author attributions from the code which is not the best practice imho. (fyi @ITGrocery)

holgerbrandl avatar Feb 06 '19 08:02 holgerbrandl

I have implemented it here: https://github.com/soywiz/pasteimages/commit/de08437ee3b2e1a96bd6880c7e0a25e0d40d75bc#diff-653631669107723176ffae1c8220f0910e312e3e0d9ddca6f099e0e642876ed4R31-R36

(for files)

For URLs I'm not sure how that would work in the case the user just want to paste that URL without inserting any image.

soywiz avatar May 24 '23 15:05 soywiz

Would you be willing to prepare the fix as PR?

holgerbrandl avatar May 26 '23 20:05 holgerbrandl

Done

soywiz avatar May 27 '23 08:05 soywiz