SVG不使用inkscape命令行打开,而是使用gui打开
我是inkscape的新手,我想使用命令行界面和以下命令(与SVG位于同一目录中)处理一批SVG: 但是,当我尝试使用CLI加载SVG时,会收到以下警告:SVG不使用inkscape命令行打开,而是使用gui打开,svg,command-line,inkscape,Svg,Command Line,Inkscape,我是inkscape的新手,我想使用命令行界面和以下命令(与SVG位于同一目录中)处理一批SVG: 但是,当我尝试使用CLI加载SVG时,会收到以下警告: ** (inkscape-bin:8875): WARNING **: Can't open file: NMY.svg (doesn't exist) ** (inkscape-bin:8875): WARNING **: Can't open file: NMY.svg (doesn't exist) ** (inkscape-bin
** (inkscape-bin:8875): WARNING **: Can't open file: NMY.svg (doesn't exist)
** (inkscape-bin:8875): WARNING **: Can't open file: NMY.svg (doesn't exist)
** (inkscape-bin:8875): WARNING **: Specified document NMY.svg cannot be opened (does not exist or not a valid SVG file)
但是,从GUI中打开相同的SVG可以正确地显示图像
以下是标题SVG,以防出现问题:
<?xml version='1.0' encoding='iso-8859-1'?>
<svg version='1.1' baseProfile='full'
xmlns:svg='http://www.w3.org/2000/svg'
xmlns:rdkit='http://www.rdkit.org/xml'
xmlns:xlink='http://www.w3.org/1999/xlink'
xml:space='preserve'
width='250px' height='150px' >
我正在MacOS 10.14上使用inkscapeinkscape 0.92.2 5c3e80d,2017-08-06
谢谢 发现了问题,我必须指定文件的绝对路径。非常感谢您。为了完整性,如果您正在进行导出(
-e
),则那里的路径也必须是绝对路径。
<?xml version='1.0' encoding='iso-8859-1'?>
<svg version='1.1' baseProfile='full'
xmlns:svg='http://www.w3.org/2000/svg'
xmlns:rdkit='http://www.rdkit.org/xml'
xmlns:xlink='http://www.w3.org/1999/xlink'
xml:space='preserve'
width='250px' height='150px' >