Troubles converting a svg-file to png-file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
iGamer2
Posts: 2
Joined: 2018-10-01T06:18:16-07:00
Authentication code: 1152

Troubles converting a svg-file to png-file

Post by iGamer2 »

Hello guys,
I have a problem converting a svg file to a png-file using this code:

Code: Select all

convert -density 50 -background none -verbose 59.svg target.png
The output i get looks pretty normal and the png file itself is not looking bad:

Code: Select all

'inkscape' '/tmp/magick-154NxDcoSlKe3Bv' --export-png='/tmp/magick-154ZxWtmwYZaGb1' --export-dpi='50,50' --export-background='rgb(0%,0%,0%)' --export-background-opacity='0' > '/tmp/magick-154Mxh-pyb3vjLw' 2>&1
mvg:/tmp/magick-154nm4Hxm67BDm2=>/tmp/magick-154nm4Hxm67BDm2 MVG 2777x2777 2777x2777+0+0 16-bit sRGB 1.49KB 3.480u 0:03.459
59.svg MVG 2777x2777 2777x2777+0+0 16-bit sRGB 1.49KB 0.000u 0:00.000
59.svg=>target.png MVG 2777x2777 2777x2777+0+0 16-bit sRGB 171KB 0.680u 0:00.700
Here is the source (svg) file: https://drive.google.com/open?id=1F9VZH ... peEb-5QWAP
And here is what i get using the statement from above: https://drive.google.com/open?id=1aValx ... XTaVp-fJgi

As you can clearly see, the edges of the single "circle parts" (idk the english word) are all rounded, which should not be the case.

Can you help me with this problem? My ImageMagick version is 6.9.7-4
Thank you in advance
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Troubles converting a svg-file to png-file

Post by snibgo »

What version of Inkscape?

With IM v6.9.9-50 and Inkscape 0.91, I get square ends to the circular arcs.
snibgo's IM pages: im.snibgo.com
iGamer2
Posts: 2
Joined: 2018-10-01T06:18:16-07:00
Authentication code: 1152

Re: Troubles converting a svg-file to png-file

Post by iGamer2 »

Thanks man, you were right.
It appears as if inkscape was not even installed.
When i updated/ installed it to the newest, version the bug was gone.
Post Reply