Warm tip: This article is reproduced from serverfault.com, please click

How do I preview images smaller in org-mode?

发布于 2020-12-10 09:28:30

I've tried #+ATTR_ORG: :width 100, perhaps that only works on file urls, not internet urls?

My code:

#+ATTR_ORG: :width 100
[[https://thumbnails-visually.netdna-ssl.com/different-types-of-beer-beer-101_5617d03b3d778_w1500.png]]

I'm on Doom Emacs, 27, if that matters! Thank you!

Questioner
0atman
Viewed
11
petrucci4prez 2020-12-14 02:32:47

What is the value of org-image-actual-width? If it is t (the default) org-mode will display images using their original width. If set to nil it should use the attribute you set (there are other nuances for this variable but I defer to the docs for those).

I don't think this will work for anything other than file urls since those are the only pattern that org-display-inline-images will search for when creating the inline images.