Page 1 of 1

Converting svg results blank image

Posted: 2018-03-22T01:22:56-07:00
by Wemessage
I have the following svg

Code: Select all

<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="50.000000pt" height="50.000000pt" viewBox="0 0 50.000000 50.000000" preserveAspectRatio="xMidYMid meet" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<pattern id="image" x="0" y="0" patternUnits="userSpaceOnUse" height="491" width="870">
<image x="0" y="0" xlink:href="http://www.dart.wemessage.it/flights/tmp/Homepagina-slider-w7.png"></image>
</pattern>
</defs>
<g transform="translate(0.000000,50.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none">
<path d="M199 471 c-31 -15 -59 -37 -66 -51 -8 -16 -13 -72 -13 -155 l0 -131
68 -67 68 -67 68 69 68 68 -4 141 c-3 160 -6 166 -87 200 l-48 20 -54 -27z" fill="url(#image)"></path>
</g>
</svg>
when i convert it i get blank image in return.
command which i use to convert is : convert -background none -density 400 source.svg target.png

Re: Converting svg results blank image

Posted: 2018-03-22T09:01:10-07:00
by fmw42
Perhaps your svg file is not properly formatted. None of my non-Imagemagick tools show anything when it is opened either.