1

这是一个带有一些路径的 SVG 文件:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0"
    ... viewBox="0 0 1920.000000 1080.000000">
    <g transform="translate(0.000000,1080.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
        <path d="M16320 10788 c0 -5 132 -7 293 -6 293 2 259 6 -101 10 -105 2 -192 0
-192 -4z"/>
 <!-- Many other paths -->

我想提取 1080x1920 参考框架内的路径数据。在提取路径数据之前必须考虑平移和缩放。
我目前Ungroup在提取所有路径之前使用 Inkscape 中的选项。
如何自动完成(通过命令行或程序)?

4

1 回答 1

1

您可以从命令行运行 Inkscape 操作

inkscape --actions "select-all:groups; SelectionUnGroup; export-filename: output.svg; export-plain-svg; export-do;" intput.svg
于 2021-03-18T14:07:07.370 回答