使用InkScape,某些svg文件未转换为png

时间:2018-09-10 11:33:22

标签: svg inkscape

我正在使用OS-Ubuntu 16.04.4 LTS和InkScape版本:0.92.3。

大多数svg文件已正确转换为PNG。但是在某些文件中,转换不正确。

这里是svg内容和链接的文件。

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="380" height="380" viewBox="0 0 380 380" xml:space="preserve">
  <desc>Created with Fabric.js 1.7.13</desc>
  <defs></defs>
  <g transform="translate(190 190) scale(0.506667 0.506667)">
    <image xlink:href="1-original.jpg" x="-500" y="-375" style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" width="1000" height="750" preserveAspectRatio="none"></image>
  </g>
</svg>

Here是原始文件的链接,需要在放置svg文件的同一目录中下载并保存“ 1-original.jpg”。

然后运行命令:

inkscape 6014.svg --export-png=demo.png

在运行命令并生成了demo.png以后,该demo.png无法正确生成:

x

在浏览器中打开svg文件时,它将显示正确。

0 个答案:

没有答案
相关问题