Converting svg results blank image

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
Wemessage
Posts: 1
Joined: 2018-03-22T00:55:23-07:00
Authentication code: 1152

Converting svg results blank image

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting svg results blank image

Post by fmw42 »

Perhaps your svg file is not properly formatted. None of my non-Imagemagick tools show anything when it is opened either.
Post Reply