imagemagick 6.6.9-9 convert svg to png problem
Posted: 2011-05-24T13:11:57-07:00
Hi,
i really appreciate IM. It is a great software!
I have encountered a problem with a fresh installation of (macports 1.9.1 installation)
Version: ImageMagick 6.6.9-9 2011-05-24 Q16
When i try to convert an svg to a png by calling `convert test.svg test.png` the png is essentially blank.
It seems that something changed with the handling of the transform attribute. However, the svg
is rendered fine by Preview and Illustrator. Also, the conversion works using an earlier version of IM (6.5.7-0).
What am I doing wrong?
Best
m
PS: here is the svg
i really appreciate IM. It is a great software!
I have encountered a problem with a fresh installation of (macports 1.9.1 installation)
Version: ImageMagick 6.6.9-9 2011-05-24 Q16
When i try to convert an svg to a png by calling `convert test.svg test.png` the png is essentially blank.
It seems that something changed with the handling of the transform attribute. However, the svg
is rendered fine by Preview and Illustrator. Also, the conversion works using an earlier version of IM (6.5.7-0).
What am I doing wrong?
Best
m
PS: here is the svg
Code: Select all
<svg xmlns="http://www.w3.org/2000/svg" width="240.00" height="230.00">
<g transform="rotate(-90) scale(0.10,-0.10) translate(-1800.00,-1200.00)">
<g>
<g stroke="black" stroke-width="10" stroke-linecap="round" transform="translate(0.0,0.0) rotate(0.0)">
<line x1="0" y1="0" x2="-200" y2="0"></line><line x1="0" y1="0" x2="-50" y2="30"></line>
<line x1="0" y1="0" x2="-50" y2="-30"></line>
</g>
<g stroke="black" stroke-width="10" stroke-linecap="round" transform="translate(565.4,-901.9) rotate(58.2)">
<line x1="0" y1="0" x2="-200" y2="0"></line><line x1="0" y1="0" x2="-50" y2="30"></line>
<line x1="0" y1="0" x2="-50" y2="-30"></line></g><g stroke="blue" stroke-width="10" transform="translate(1046.3,284.0) rotate(123.2)">
<rect x="-160.0" y="-155.0" width="320.0" height="310.0" fill="white"></rect><line x1="0" y1="0" x2="155.0">Y20</line>
</g>
<g transform="translate(1564.5,-244.6) rotate(-8.9)">
<circle cx="80.76" cy="0.0" r="80.76" fill="#766009"></circle>
</g>
</g>
</g>
</svg>