In org mode, I am trying to resize inline images to fit a 100px x 100px square, which would be particular useful in the cases in which an image is much taller that wider, or vice versa. In other words I would like the resized image to be contained in 100px x 100px square, and to be with at least one side of 100px.
I am using the following code:
#+STARTUP: showall #+STARTUP: inlineimages #+TAGS: HOUSE(h) * section 1 - my org file ;; Local Variables: ;; eval: (setq org-image-actual-width 100) ;; eval: (setq org-image-actual-height 100) ;; eval: (org-display-inline-images t t) ;; End:
But it does not work, in the sense that the width is set to 100px, but the height is not taken into account. How can I obtain the behavior I am seeking?