-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MD-to-ODT-conversion: SVG images not supported properly #3462
Comments
Image sizes are determined in Text/Pandoc/ImageSize.hs. Unfortunately, there are a gazillion ways for an SVG to end up with a specific size, see https://css-tricks.com/scale-svg/ I guess we could support some of the (like the In the meantime, try e.g. |
Of course I use the workaround to live with it for now. Since I did not find any topic on the problem I thought it would be wise to file an issue report... I assumed that SVG would be somehow standardized. Anyway. Actually, the size itself is not bothering me. The ratio is bothering me. As you can see above the tag Maybe I can find some spare time to provide a fix/improvement myself and to file a merge request. |
Are the units for the width and height attributes on the svg root element in pixels, or what? |
I do not know the "standard", but yes, this is what I assume. I quickly made a new SVG, where the dimensions of the document are in mm-units. The related SVG attributes are then:
|
make imageSize recognize basic SVG dimensions, see #3462
Problem
A simple markdown document referencing an SVG image can be
converted to ODT. However, the following warnings appear:
The ODT file is created and the image appears, but the dimensions of the image
are wrong: width and height are always equal (as it can be seen below)
Call
pandoc was called like this:
Version Information
Resources
This is an inkscape file, however, the pure SVG version did not work either.
The text was updated successfully, but these errors were encountered: