我希望将一个简单的SVG图形转换为JPEG格式。以下是SVG源代码:
<svg style="overflow: hidden; position: relative;"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
width="300" version="1.1" height="200">
<image x="10" y="10" width="276" height="110"
xlink:href="http://images.google.com/intl/de_ALL/images/logos/images_logo_lg.gif"
stroke-width="1"></image>
<rect x="0" y="150" height="10" width="300" style="fill: #000000"/>
</svg>
如果我在安装有ImageMagick 6.7.8的Windows XP机器上进行转换,一切都正常工作。
convert test.svg test.jpg
当我在我的Linux服务器(Debian 6.0 ImageMagick 6.6.0)上进行相同的转换时,只得到黑色的线条。
我尝试升级我的Linux机器上的最新Imagemagick版本,但是从软件库中没有获取到更新的版本。
但我不确定使用外部图片是否是最新版本的功能,还是配置问题。
感谢任何建议!
Version: ImageMagick 6.6.9-7 2012-08-17 Q16
版本。你在回答中确认这个版本不如预期运行。 - Michael Klenk