rsvg-convert does not render Inkscape SVGs correctly
I'm unsure if this is an appropriate place to post this - please let me know if not.
The issue
I have an Inkscape SVG, which I attempted to render using rsvg-convert
as so:
rsvg-convert --format=pdf --output=with-rsvg.pdf --dpi-x=300 --dpi-y=300 original.svg
This works, but it produces several rendering issues (see files attached, in particular the orientation of the arrows). When I use Inkscape to do the same thing as follows:
inkscape -z --file=original.svg --export-dpi=300 --export-pdf=with-inkscape.pdf
Then I get the right appearance (again, see attached files). Even if I export a plain SVG using Inkscape first:
inkscape -z --export-plain-svg=plain.svg --file=original.svg
If I try to render plain.svg
using the method above (with rsvg-convert
), I get the same visual issues (once again, see attached files).
I have attached the files so produced here: examples.zip.
The environment
$ inkscape --version
Inkscape 0.92.4 5da689c313, 2019-01-14
$ rsvg-convert --version
rsvg-convert version 2.40.20
I am on an MSYS2 (Bash) shell on Windows 10 Enterprise, running inside Cmder. Inkscape and rsvg-convert (as well as their associated dependencies) were installed with pacman
, for a 64-bit platform (that is, mingw-w64-x86_64-*
).