juzisang / picgo-plugin-compress

Image compression plugin for PicGo
MIT License
126 stars 31 forks source link

image2webp报错 #62

Open boringhex-top opened 1 year ago

boringhex-top commented 1 year ago

PicGo 2.3.1 Win10 19044

2022-12-29 12:18:46 [PicGo INFO] Before transform 2022-12-29 12:18:46 [PicGo INFO] Transforming... Current transformer is [compress] 2022-12-29 12:18:46 [PicGo INFO] 压缩:image2webp 2022-12-29 12:18:46 [PicGo INFO] 图片地址:C:\Users\yp.wang\Desktop\微信截图_20221123105211.png 2022-12-29 12:18:46 [PicGo INFO] 图片信息:{"fileName":"微信截图_20221123105211.png","extname":".png"} 2022-12-29 12:18:46 [PicGo INFO] Image2WebP 压缩开始 2022-12-29 12:18:46 [PicGo INFO] 获取本地图片 2022-12-29 12:18:46 [PicGo INFO] 转换图片为WebP 2022-12-29 12:18:46 [PicGo WARN] failed 2022-12-29 12:18:46 [PicGo ERROR] ------Error Stack Begin------ Error: ϵͳ�Ҳ���ָ����·����

at notFoundError (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\exec-buffer\node_modules\cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\exec-buffer\node_modules\cross-spawn\lib\enoent.js:46:16)
at ChildProcess.cp.emit (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\exec-buffer\node_modules\cross-spawn\lib\enoent.js:33:19)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

-------Error Stack End------- 2022-12-29 12:18:46 [PicGo ERROR] ------Error Stack Begin------ Error: ϵͳ�Ҳ���ָ����·����

at notFoundError (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\exec-buffer\node_modules\cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\exec-buffer\node_modules\cross-spawn\lib\enoent.js:46:16)
at ChildProcess.cp.emit (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\exec-buffer\node_modules\cross-spawn\lib\enoent.js:33:19)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

-------Error Stack End-------

ReCclay commented 1 year ago

同问,我只能用imagemin,使用image2webp就会报同样的错误!

niaodian commented 1 year ago

same issue happened on MacOS as well:

------Error Stack Begin------
Error: spawn /Users/xxx/Library/Application Support/picgo/node_modules/cwebp-bin/vendor/cwebp ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
-------Error Stack End-------