Reputation: 7327
The following signifies a picture in org-mode that is scaled to size width="300"
. When I preview my document in a browser, the image is successfully re-sized to 300px width; however, when I preview the images inline using C-c C-x C-v
(i.e., org-toggle-inline-images
), the image is displayed but fails to be resized to width 300px.
#+ATTR_HTML: width="300"
[[file:/path/to/picture.png]]
Question: How do I re-scale inline org-mode images to specific widths?
Upvotes: 6
Views: 4834
Reputation: 1036
For recent versions of Org:
#+ATTR_HTML: :width 300
#+ATTR_ORG: :width 300
[[file:/path/to/picture.png]]
The syntax for ATTR_HTML
is the same as the other property lists.
Upvotes: 6
Reputation: 2255
Try this:
#+ATTR_HTML: width="300"
#+ATTR_ORG: :width 300
[[file:/path/to/picture.png]]
Upvotes: 3
Reputation: 2433
I think you need to have ImageMagick installed, and Emacs must be built with ImageMagick support.
Upvotes: 4