[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] ODT export of SVG image, wrong size properties
From: |
James Harkins |
Subject: |
[O] ODT export of SVG image, wrong size properties |
Date: |
Thu, 07 Sep 2017 23:09:13 -0400 |
User-agent: |
Zoho Mail |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] ODT export of SVG image, wrong size properties,
James Harkins <=