Open xyzmst opened 1 year ago
是的,使用tinypng+自己申请的key,无法上传。
2022-12-07 15:56:25 [PicGo INFO] [PicGo Server] upload result
2022-12-07 15:56:25 [PicGo WARN] [PicGo Server] upload failed, see picgo.log for more detail ↑
2022-12-07 16:09:59 [PicGo INFO] [PicGo Server] get the request {"list":["E:\\OneDrive - ***\\IMG_20221206_222530.jpg"]}
2022-12-07 16:09:59 [PicGo INFO] [PicGo Server] upload files in list
2022-12-07 16:09:59 [PicGo INFO] Before transform
2022-12-07 16:09:59 [PicGo INFO] Transforming... Current transformer is [compress]
2022-12-07 16:09:59 [PicGo INFO] 压缩:tinypng
2022-12-07 16:09:59 [PicGo INFO] 图片地址:E:\OneDrive - ***\IMG_20221206_222530.jpg
2022-12-07 16:09:59 [PicGo INFO] 图片信息:{"fileName":"IMG_20221206_222530.jpg","extname":".jpg"}
2022-12-07 16:09:59 [PicGo INFO] TinyPng初始化
2022-12-07 16:09:59 [PicGo INFO] TinyPng开始上传
2022-12-07 16:09:59 [PicGo INFO] 获取本地图片
2022-12-07 16:09:59 [PicGo INFO] 使用TinypngKey:z***1
2022-12-07 16:09:59 [PicGo INFO] TinyPng 上传本地图片
2022-12-07 16:09:59 [PicGo WARN] failed
2022-12-07 16:09:59 [PicGo ERROR]
------Error Stack Begin------
TypeError: req.end is not a function
at TinyPng.uploadImage (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:160:17)
at TinyPng.<anonymous> (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:107:54)
at step (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:52:23)
at Object.next (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:33:53)
at fulfilled (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:24:58)
-------Error Stack End-------
2022-12-07 16:09:59 [PicGo ERROR]
------Error Stack Begin------
TypeError: req.end is not a function
at TinyPng.uploadImage (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:160:17)
at TinyPng.<anonymous> (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:107:54)
at step (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:52:23)
at Object.next (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:33:53)
at fulfilled (C:\Users\18377\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:24:58)
-------Error Stack End-------
2022-12-07 16:09:59 [PicGo INFO] [PicGo Server] upload result
2022-12-07 16:09:59 [PicGo WARN] [PicGo Server] upload failed, see picgo.log for more detail ↑
我同时还使用了amazon s3 uploader插件
不是 compress 插件的问题。
可以看 Obsidian 高效写作:PicGo+gitee+TnyPNG自动压缩图片上传图床,而且还免费! 这个b站视频,里面有讲详细的解决方案。
不是 compress 插件的问题。
可以看 Obsidian 高效写作:PicGo+gitee+TnyPNG自动压缩图片上传图床,而且还免费! 这个b站视频,里面有讲详细的解决方案。
插件应该跟进主程序的版本更新,我花几个月时间提issue陪着picgo从2.3.0走到2.3.1,这个视频居然还一本正经的要我降版本?
不过compress的webp压缩还可以用,压缩质量约等于谷歌squoosh的75
原因可能是axios替代了Request,而插件没有进行跟进?2.31的更新说明貌似提到了这一点: 更新:PicGo底层上传库从 request 迁移至 axios ,理论上对旧有插件是兼容的,如果插件遇到不兼容的情况请开发者参考 PicGo-Core 的 https://github.com/PicGo/PicGo-Core/issues/65 进行适配
插件停更了,貌似。picgo的request 底层改了。
已解决:#71
picgo 2.3.1 plugin 1.4.0 macbook m1pro macos: 13.0.1 (22A400) ------Error Stack Begin------ TypeError: req.end is not a function at TinyPng.uploadImage (/Users/xxx/Library/Application Support/picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:160:17) at TinyPng. (/Users/xxx/Library/Application Support/picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:107:54)
at step (/Users/xxx/Library/Application Support/picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:52:23)
at Object.next (/Users/xxx/Library/Application Support/picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:33:53)
at fulfilled (/Users/xxx/Library/Application Support/picgo/node_modules/picgo-plugin-compress/dist/compress/tinypng/tinypng.js:24:58)
-------Error Stack End-------