mokee commited on
Commit
3fd3717
·
verified ·
1 Parent(s): 5c00b52

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -1
server.js CHANGED
@@ -26,7 +26,8 @@ app.post('/convert', (req, res) => {
26
 
27
  // 2. 调用 Inkscape 命令行进行轮廓化 (Outline Stroke)
28
  // 这里的参数 --actions 是 Inkscape 1.x+ 的标准写法
29
- const command = `inkscape "${inputFile}" --actions="path-outline;export-filename:${outputFile};export-do"`;
 
30
 
31
  exec(command, (error) => {
32
  if (error) {
 
26
 
27
  // 2. 调用 Inkscape 命令行进行轮廓化 (Outline Stroke)
28
  // 这里的参数 --actions 是 Inkscape 1.x+ 的标准写法
29
+ // 修改 server.js 中的这一行
30
+ const command = `inkscape "${inputFile}" --actions="select-all:all;path-outline;export-filename:${outputFile};export-do"`;
31
 
32
  exec(command, (error) => {
33
  if (error) {