-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tinypng 报错 #63
Comments
坏了,我也是这个错误 |
不是 compress 插件的问题。 可以看 Obsidian 高效写作:PicGo+gitee+TnyPNG自动压缩图片上传图床,而且还免费! 这个b站视频,里面有讲详细的解决方案。 |
更新:PicGo底层上传库从 request 迁移至 axios ,理论上对旧有插件是兼容的,如果插件遇到不兼容的情况请开发者参考 PicGo-Core 的 PicGo/PicGo-Core#65 进行适配 可以根据楼上的视频,下载老版本的 picgo2.3.0 即可。插件停更好像。 |
参看这个修改: |
已解决:#71 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PicGo 2.3.1
Win10 19044
2022-12-29 13:04:30 [PicGo INFO] TinyPng 上传本地图片
2022-12-29 13:04:30 [PicGo WARN] failed
2022-12-29 13:04:30 [PicGo ERROR]
------Error Stack Begin------
TypeError: req.end is not a function
at TinyPng.uploadImage (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:160:17)
at TinyPng. (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:107:54)
at step (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:52:23)
at Object.next (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:33:53)
at fulfilled (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:24:58)
-------Error Stack End-------
2022-12-29 13:04:30 [PicGo ERROR]
------Error Stack Begin------
TypeError: req.end is not a function
at TinyPng.uploadImage (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:160:17)
at TinyPng. (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:107:54)
at step (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:52:23)
at Object.next (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:33:53)
at fulfilled (C:\Users\yp.wang\AppData\Roaming\picgo\node_modules\picgo-plugin-compress\dist\compress\tinypng\tinypng.js:24:58)
-------Error Stack End-------
The text was updated successfully, but these errors were encountered: