自己有写博客,通过思源笔记的【复制到语雀】功能,把笔记内容以 markdown 形式复制。但是思源笔记的图片都是本地保存的, 官方的自带图床很难正常使用,所以申请了阿里云的 oss 和 picgo 当做图床,但是思源笔记没有提供一键上传图片文件到自己图床的功能,需要手动把笔记里面的图片,复制,然后再 picgo 上传后拿到 markdown 格式的图片再插入到笔记中。
官方提供的一键上传到思源的图床
自己有 picgo 可以上传到阿里云 oss,方便写博客的时候直接复制
尝试下载第三方的 picgo 插件
设置了 picgo 和阿里云 oss 参数后,结果插件报错了:
2023-07-31 20:26:18 [PicGo ERROR]
------Error Stack Begin------
Error: Cannot find module './uploader'
Require stack:
- X:\siyuan3\data\storage\syp\picgo\node_modules\picgo-plugin-s3\dist\index.js
- X:\siyuan3\data\plugins\siyuan-plugin-picgo\libs\sy-picgo-core\syPicgo.js
- electron/js2c/renderer_init
at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
at o._resolveFilename (node:electron/js2c/renderer_init:2:3879)
at Module._load (node:internal/modules/cjs/loader:927:27)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at o._load (node:electron/js2c/renderer_init:2:3109)
at Module.require (node:internal/modules/cjs/loader:1148:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (X:\siyuan3\data\storage\syp\picgo\node_modules\picgo-plugin-s3\dist\index.js:5:36)
at Object.<anonymous> (X:\siyuan3\data\storage\syp\picgo\node_modules\picgo-plugin-s3\dist\index.js:172:3)
at Module._compile (node:internal/modules/cjs/loader:1269:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1324:10)
at Module.load (node:internal/modules/cjs/loader:1124:32)
at Module._load (node:internal/modules/cjs/loader:965:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at o._load (node:electron/js2c/renderer_init:2:3109)
at Module.require (node:internal/modules/cjs/loader:1148:19)
at require (node:internal/modules/cjs/helpers:110:18)
at cK.getPlugin (X:\siyuan3\data\plugins\siyuan-plugin-picgo\libs\sy-picgo-core\syPicgo.js:376:11991)
at cK.registerPlugin (X:\siyuan3\data\plugins\siyuan-plugin-picgo\libs\sy-picgo-core\syPicgo.js:376:11012)
at cK.load (X:\siyuan3\data\plugins\siyuan-plugin-picgo\libs\sy-picgo-core\syPicgo.js:376:10638)
at yT.init (X:\siyuan3\data\plugins\siyuan-plugin-picgo\libs\sy-picgo-core\syPicgo.js:556:28659)
at new yT (X:\siyuan3\data\plugins\siyuan-plugin-picgo\libs\sy-picgo-core\syPicgo.js:556:27937)
at new kJ (X:\siyuan3\data\plugins\siyuan-plugin-picgo\libs\sy-picgo-core\syPicgo.js:556:35474)
at Object.initPicgo (X:\siyuan3\data\plugins\siyuan-plugin-picgo\libs\sy-picgo-core\syPicgo.js:556:37964)
at se.initSyPicgo (http://127.0.0.1:1657/plugins/siyuan-plugin-picgo/entry.index.js?v=1686801700020:1:17576)
at se.init (http://127.0.0.1:1657/plugins/siyuan-plugin-picgo/entry.index.js?v=1686801700020:1:17132)
at se.getInstance (http://127.0.0.1:1657/plugins/siyuan-plugin-picgo/entry.index.js?v=1686801700020:1:17018)
at es (http://127.0.0.1:1657/plugins/siyuan-plugin-picgo/entry.index.js?v=1686801700020:2:43783)
at http://127.0.0.1:1657/plugins/siyuan-plugin-picgo/entry.index.js?v=1686801700020:2:44011
at http://127.0.0.1:1657/plugins/siyuan-plugin-picgo/entry.index.js?v=1686801700020:2:44016
-------Error Stack End-------
还有没有什么方法可以把思源笔记的图片一键上传到自己的图床?
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于