Being able to provide a percentage or absolute width in particular is almost mandatory. Using the dev tools to set a global image preview size… not sustainable
By the way, you can just directly copy the URL of the image (right click, copy image address/copy image link), and reference it like a external link, but with a !.
This would be a great feature to add! I use Obsidian to take notes with images attached by pasting. There’s no need to actually compress the embedded image file, adjust the display width would be enough!
Another markdown app I use has a link style like this to specify image width: ![IMAGE](resources/92144EFF1B136A725B5E70B356019505.jpg =430) it looks a lot like what Obsidian does, only has the addition = width part.
+1 on this feature. as a PhD student in engineering, I take notes of a lot of formulations, like integer programs and so on. I usually copy the formulation on my notes from a paper, or from the class notes/ppt file, but end up with a HUGE image in the middle of the notes.
I would love to resize it to match the Obsidian font size for example.
That doesn’t seem to work with embedded PDFs, if I’m seeing this right? Or with embedded notes. I have small-ish notes for example that I would love to embed without a scrollbar, but they are slightly too long.
Ya, as best I can tell, the ![[file.pdf|SIZE]] syntax embeds the PDF, but the SIZE portion doesn’t do anything.
I’ve got a single-page PDF embedded in one of my notes, and it is displaying at 304px x 800x, where most of that 800x is empty vertical space, about 3 or 4 times taller than it needs to be. Plus, at only 304px wide, the preview is too small to be useful – nothing in the image is legible.
I suspect that the sizing might be decided by whatever internal process is producing the source of the embedded iframe, something showing up as blob:app://obsidian.md/ecc6c4ed-f072-4c51-b323-1433fb20386c.
Request: Allow for PDF previews to be sized, much as images are currently sizable.
Note: If I use the Inspector view to munge the CSS for the iframe element, I can make that bigger or smaller – but the PDF preview remains the same size. This is not useful behavior.
I’m going to give this post another +1 as I’m still hoping for some time of visual scaling tool (perhaps in the WYSIWYM editor) and alignment/justification.