You can embed images within the exported document by providing a link to the desired image file with no link description. For example, to embed ‘img.png’ do either of the following:
You can create clickable images by providing a link whose description is a link to an image file. For example, to embed a image org-mode-unicorn.png which when clicked jumps to http://Orgmode.org website, do the following
You can control the size and scale of the embedded images using the
The exporter specifies the desired size of the image in the final document in
units of centimeters. In order to scale the embedded images, the exporter
queries for pixel dimensions of the images using one of a) ImageMagick’s
identify program or b) Emacs ‘create-image’ and ‘image-size’
APIs154. The pixel dimensions are subsequently
converted in to units of centimeters using
org-odt-pixels-per-inch. The default value of this variable is
display-pixels-per-inch. You can tweak this variable to
achieve the best results.
The examples below illustrate the various possibilities.
To embed img.png as a 10 cm x 10 cm image, do the following:
#+ATTR_ODT: :width 10 :height 10 [[./img.png]]
To embed img.png at half its size, do the following:
#+ATTR_ODT: :scale 0.5 [[./img.png]]
To embed img.png with a width of 10 cm while retaining the original height:width ratio, do the following:
#+ATTR_ODT: :width 10 [[./img.png]]
To embed img.png with a height of 10 cm while retaining the original height:width ratio, do the following
#+ATTR_ODT: :height 10 [[./img.png]]
You can control the manner in which an image is anchored by setting the
:anchor property of it’s
#+ATTR_ODT line. You can specify one
of the following three values for the
‘"as-char"’, ‘"paragraph"’ and ‘"page"’.
To create an image that is anchored to a page, do the following:
#+ATTR_ODT: :anchor "page" [[./img.png]]
Use of ImageMagick is only desirable. However, if you routinely produce documents that have large images or you export your Org files that has images using a Emacs batch script, then the use of ImageMagick is mandatory.