Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
|
@@ -26,7 +26,8 @@ app.post('/convert', (req, res) => {
|
|
| 26 |
|
| 27 |
// 2. 调用 Inkscape 命令行进行轮廓化 (Outline Stroke)
|
| 28 |
// 这里的参数 --actions 是 Inkscape 1.x+ 的标准写法
|
| 29 |
-
|
|
|
|
| 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) {
|