emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ODT export of SVG image, wrong size properties
@ 2017-09-08  3:09 James Harkins
  0 siblings, 0 replies; only message in thread
From: James Harkins @ 2017-09-08  3:09 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I am exporting a document to ODT, including a small SVG image.

#+name: Notation1
#+caption: Transcription into Western notation of an example pattern string.
#+attr_odt: :width 6.88 :height 1.87
[[./notated-example.svg]]

The frame properties, however, do not respect the given size attributes.

<draw:frame draw:style-name="OrgCaptionedImage" svg:width="6.88cm" svg:height="1.27cm" style:rel-width="100%" style:rel-height="scale" text:anchor-type="paragraph" draw:name="Frame1">

<draw:image xlink:href="Images/0001.svg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>

"svg:width" and "svg:height" are correct, but the style also specifies ~rel-height="scale"~ and, in LibreOffice 5.1, this overrides the specific height. So the image gets squashed: it's displayed with 33% of the height it should have.

Initially I tried without any "#+attr_odt" and got the incorrect display. The org manual says:

> 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]]

But I get the same incorrect result this way as well. So I tried setting the width and height explicitly to the SVG's dimensions, and the display is still wrong.

hjh

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-08  3:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08  3:09 ODT export of SVG image, wrong size properties James Harkins

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).