Closed StalderT closed 8 years ago
Which version of ImageMagick are you using?
I use ImageMagick version 6.9.2-8 Q16
I get an image with a different width and height when I change the 1000 to 100 in the MagickSetResolution call. What is the output of:
convert -list format | grep -i svg
result :
MSVG rw+ ImageMagick's own SVG internal renderer
SVG rw+ Scalable Vector Graphics (XML 2.9.2)
SVGZ rw+ Compressed Scalable Vector Graphics (XML 2.9.2)
Here my svg file (renamed to txt) a.txt
Thanks in advance for all.
I have test under cygwin with version : ImageMagick 6.9.1-3 Q16
$ convert -list format | grep -i svg
MSVG rw+ ImageMagick's own SVG internal renderer
SVG rw+ Scalable Vector Graphics (RSVG 2.40.9)
SVGZ rw+ Compressed Scalable Vector Graphics (RSVG 2.40.9)
And it works !
I don't now why API doesn't work on my linux and why convert utility works.
Regards,
It seems that under cygwin convert uses RSVG instead of MSVG (XML 2.9.2). The latter is not as good as RSVG and I would advise you to use librsvg in both situations.
I understand RSVG is better than XML. But I don't understant why convert works with XML and API not.
I think the you don't have librsvg installed on your linux machine. And if cygwin uses the Windows installer this will include librsvg.
No I don't have librsvg on my linux machine. But convert --density
works on my linux machine without librsvg (API not).
Hello,
I want to convert a svg file to png, with increasing resolution.
Using command line works :
Using API doesn't work (convert works but only with original resolution) :
MagickSetResolution(magick_wand,1000,1000) seem to have no effect (width and height not change even if we change resolution)
Thanks in advance