evgo2017 / picgo-plugin-folder-name Goto Github PK
View Code? Open in Web Editor NEWUse part of the local address of the file as part of the cloud address - 将文件的部分本地地址,作为部分云端地址
Use part of the local address of the file as part of the cloud address - 将文件的部分本地地址,作为部分云端地址
typora + PicGo + github搭建的图床
typora 版本: 0.11.18
PicGo(app) 版本:2.3.0
点击typora菜单栏的"格式" -> 图像 -> 上传所有本地图片,当上传数量超过一张时,此插件不起作用。只有1张图片,或右键某张图片上传时有效。
多张图片时PicGo日志(最后显示的文件名前少了一层目录MWA):
2022-10-12 15:15:50 [PicGo INFO] [PicGo Server] get the request {"list":["D:\WorkSpace\Utilities\MarkDown\Images\MWA\image-20221012151431469.png","D:\WorkSpace\Utilities\MarkDown\Images\MWA\image-20221012151543072.png"]}
2022-10-12 15:15:50 [PicGo INFO] [PicGo Server] upload files in list
2022-10-12 15:15:50 [PicGo INFO] Before transform
2022-10-12 15:15:50 [PicGo INFO] Transforming... Current transformer is [path]
2022-10-12 15:15:50 [PicGo INFO] Before upload
2022-10-12 15:15:50 [PicGo INFO] beforeUploadPlugins: folder-name running
2022-10-12 15:15:50 [PicGo INFO] beforeUploadPlugins: renameFn running
2022-10-12 15:15:50 [PicGo INFO] Uploading... Current uploader is [githubPlus]
2022-10-12 15:15:51 [PicGo SUCCESS]
https://cdn.jsdelivr.net/gh/star-tong/PicturesBed/img/image-20221012151431469.png
https://cdn.jsdelivr.net/gh/star-tong/PicturesBed/img/image-20221012151543072.png
同时安装folder-name与rename-file时folder-name隐藏path规则不起作用,不知到底那个插件影响那个
我的测试文件 test.md 位置为 D:\Users\Lenovo\Desktop\test.md,在 Typora 的 偏好设置
-> 图像
中,不管是
插入图片时自动上传
然后在文档中粘贴图片,还是这两种方式 PicGo 返回的 URL 都没有包含父文件夹名称。我已经在插件中设置 向上层数
为1,忽略名称
没有填写,如图:
所以我想这样设置后,PicGo 上传的路径应该为类似 https://cdn.jsdelivr.net/gh/burgessx/imgbed@main/img/Desktop/20210412134726.png
才对,然而实际上为 https://cdn.jsdelivr.net/gh/burgessx/imgbed@main/img/20210412134726.png
。
下面是我的一种 Typora 设置:
初次使用 PicGo,望不吝赐教,感谢~
typora + PicGo + github搭建的图床
typora 版本: 1.3.8
PicGo(app) 版本:2.3.1-beta.6
测试过程中发现,不同的图片上传的路径不一样,主要为以下两种情况。
图片高度小于阈值(未测试)时,图片上传的路径符合预期;
图片高度高于阈值(未知)时,图片上传的路径会变为
picgo
的如下路径:“
C:\Users\Administrator\AppData\Roaming\picgo
”
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.