19

I used to be able to scale down an inline image in org-mode with

#+attr_html: :width 650 px
[[file:~/org/def/202a3-9.jpeg]]

But now it doesn't work anymore, presumably because of an update to 8.3.5. What to do?

Toothrot
  • 3,204
  • 1
  • 12
  • 30
  • What you have will scale the images in HTML exports, not in the org buffer. Your lack of info on the org/emacs versions when things worked and the same when things did not work cannot help anyone help you on this. – Kaushal Modi Aug 18 '16 at 12:48

2 Answers2

27

set option in your emacs init file:

(setq org-image-actual-width nil)

And add this property upon image link:

#+NAME: fig:figure name
#+CAPTION: figure name
#+ATTR_ORG: :width 200
#+ATTR_LATEX: :width 2.0in
#+ATTR_HTML: :width 200
[[file:./file.png]]

The width value 200 and 2.0in can be any inch number value if you want.

stardiviner
  • 1,888
  • 26
  • 45
-2

Some testing seem to show that just adding a space before the # solve the problem. It look like a bug. May be you should report it to the org-list.

Rémi
  • 1,607
  • 11
  • 13