I had a plugin request here but it was closed due to inactivity:
Can anybody make a plugin to fetch the image behind the link and paste it below the link in the note?
Or give me a hint how to make one on my own?
I am pasting multiple such links daily into my notes and it would save me much time.
Sure @kally, this can be achieved by converting the image url to blob base 64 encode and adding it to the note. I'm working on Paste Special project as @tessus mentioned above. Although tessus, the priority of GSoC project is converting and pasting csv to markdown and getting the best out of that feature but surely this addon can be added to project future development or if timeline is spared.
Yes, I agree. However, the GSoC should make a modular approach possible. I believe one of the parts of the project is to create a framework for different Paste Special actions, even though only one action was planned for the GSoC.
If I understand well, the question is about displaying a preview of the website below the link, is that correct? In that case, you'll have to bundle a headless browser with the plugin or somehow leverage Electron to render the website to a thumbnail. Either way, that's probably out of scope for GSoC, and perhaps not really related to Paste Special?
Hmm, there are several things in this thread so not sure what we're talking about. Pasting text that contains image URLs already downloads the image and converts it to a local resource, so it's already implemented. The original post is about ENEX import, which is unrelated.
Oh laurent i guess tessus was talking upon sally's concern with the image pasting by url as her post was revoked due to being not resolved or replied, mentioned above. Although, if that's already been developed. Please do lead her way.
I am confused too now but my request was to paste a link to an image and joplin should insert the image below the link.
It would not bother me if I would have to first paste the link as text and then a second time as Paste Special > Insert link as image as I need both, link and image.
Is this possible or planned in any way?
That seems like a convoluted way to do something simple. Why not paste the image directly? In your browser you can right click on the image and "Copy image" then paste this image in Joplin.
Edit: ok now I get it, you also want to keep the link to the image.
Yeah kally. The idea is to create a function to paste image from a link to an image (aws s3, in your example), that will be pasted as image below the link in the editor. So, you'd have both shown in editor.
oh that'd make it a little harder to implement, as the GSoC is starting soon. But i can try later that or if any developer wanna go ahead and create that then i'd surely help him/her out.