Searched in tutorials, but couldn’t find the answer, hence, asking here. How do I attach a png picture to my note? Thank you.
[[picture.png]] will make a link and ![[picture.png]] will embed the picture.
Thank you, linking and embedding look easy. But how do I insert the picture in the note? Step 1, convert png to md (?)? What is step 2?
just trying to understand the situation correctly, instead of using a PNG file in the folder, you want to embed the image itself( not the file) into note?
If that’s the case, you can copy paste base64 encoded version of the image. If that’s what you’re after, ı can paste an example snippet
Yes, I’d like to embed the image in your words. But for the sake of exercising, I’d like to know how to use a png file in the folder (is that the folder in PC or in the vault? Sorry, as you can see I’m a total diletant). I’d like to see the example snippet. Thank you.
In that here are the steps:
- in terminal run the command
base64 picture.png
- copy the output (it might be long!, thus you can use a program to copy in terminal, such as xclip or xbcopy(?))
- in markdown file, type
:
<div><img src="data:image/png;base64,/9j/4AAQS...viel Zeugs ...ZRRB//Z"/></div>
I used png- and jpeg-images for my tests.
But I normally don’t want to use HTML-code in my notes.
What can be the reason, that the first code missed?
Greets Jopii
@blue-moves there is a Community Plugin called “Ozan’s Image in Editor Plugin” that enables viewing the picture in both Edit and Preview.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.