FormerAct · 2022-01-26 08:54
Often the images that I link into an org file are huge and I need to resize them each time (with the interactive function image-decrease-size). It would be quite helpful whenever I open an org file and all the images are displayed to have them automatically adjusted to the screen size. Is that possible somehow?
danderzei · 2022-01-26 10:27
I am not sure how to dynamically change sizes.
You can set a default width and override that for each image.
`(setq org-image-actual-width '(300))`
Override by adding this to an image:
`#+attr_org: :width 900`
Hope that helps.
FormerAct · 2022-01-26 10:44
This made my day. Thank you!
Eugr · 2022-01-27 06:48
Just keep in mind that it will scale up the images that are smaller than this size. I wish there was a way to set a max size, but looks like it’s not an option currently.