Problem on converting svg to png
Posted: 2008-07-13T10:48:03-07:00
Hi. First of all let me thank the developers for the great piece of software that is ImageMagick. It is very useful.
I'm having a problem converting this svg:
The generated png is cropped at the bottom. However several polygons are correct which is strange because they are all generated with the same command:
convert -density 3000 piece0.svg piece0.png
I also tried rsvg with -width and -height instead of -density and the result was the same.
Any ideas?
I'm having a problem converting this svg:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.0">
<polygon
points="0,0.283454 3.18392,0.468029 6.53593,0 7.20171,0.784443 9.01121,0.715227 9.88794,2.52802 9.29136,2.96638 9.29136,4.48253 9.88794,4.9209 9.01121,6.73368 7.20171,6.66447 6.53593,7.44891 3.18392,6.98088 0,7.16546"
style="opacity:1;fill:#b3b3b3;fill-opacity:1;fill-rule:evenodd;stroke:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"/>
</svg>
convert -density 3000 piece0.svg piece0.png
I also tried rsvg with -width and -height instead of -density and the result was the same.
Any ideas?