【发布时间】:2012-08-06 11:15:30
【问题描述】:
我想将一个简单的 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>
如果我在 Windows XP 机器上使用 ImageMagick 6.7.8 进行转换,一切正常。
convert test.svg test.jpg
如果我在我的 linux 服务器 (Debian 6.0 ImageMagick 6.6.0) 上进行相同的转换,则只会得到黑线。
我尝试在我的 linux 机器上升级到最新的 Imagemagick 版本,但我没有从存储库中获得更新的版本。
但我不确定使用外部图像是新版本的功能,还是配置问题。
感谢您的任何建议!
【问题讨论】:
-
convert --version 在你的两台机器上说什么?
-
我安装了
Version: ImageMagick 6.6.9-7 2012-08-17 Q16版本。您在回答中确认此版本未按预期工作。
标签: image svg imagemagick