How can set a default size for the png/jpeg files that I paste in the notes? I’m fed up always typing the same “|1000” every time. Thanks
2 Likes
You can set default image sizes through CSS snippets. Go to Settings → Appearance, and then at the bottom of the pane is “CSS snippets”. You can click the folder to the right to open it, and put a text file there (mine is named “defaultimagesize.css”).
The code in mine is this:
/* === Images size defaults === */
.image-embed.image-embed img:not([width]) {
max-height: 250px;
max-width: 300px;
}
You can adjust the values as you’d like from there. Then go back to the CSS snippets section (you might need to restart Obsidian, idk), enable it, and you should be good to go.
12 Likes
Thank you
It worked easy and smooth
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.