A PicGo plugin for elegant file name prefix
可以很 优雅地 生成文件存储路径的插件
/img/2019/11/18/20191118005858.jpeg
参数 | 建议值 | 说明 |
---|---|---|
prefixFormat | YYYY/MM/DD/ |
文件名个性前缀格式(以/结尾) |
fileFormat | YYYYMMDDHHmmss |
文件名个性格式 |
A PicGo plugin for elegant file name prefix
License: MIT License
这个插件使用的时候报错了
插件很棒!
由于一些问题。上传的时候重复的上传会出现冗余图片。
图片如何设置 MD5 命名。
谢谢!
您好,我在使用本插件和 gitee 插件之后,文件上传到 gitee 仓库的路径为 2020/01/01/1010.png 但是PIcgo 返回的路径是 https://gitee.com/***/***/raw/master/1010.png, 并没有加上我设置的前缀。请问这个需要如何设置呢?
PicGo的版本 | PicGo Version
v2.4.0
Typora版本 | Typora Version
v1.2.4
I have a question: my Typora has configured the image bed with Pic-Go and Alibaba Cloud OSS, and used super-prefix to set the image upload name as timestamp. When I copy multiple images from one md file containing images (the images are represented by local paths) to another md file at the same time in the Typora editor, the timestamps of all the images are the same, resulting in an error.
My suggestion: could we add an option for a random number so that the filename contains a random number that would partially avoid the problem of duplicate timestamps
我有一个问题:我的Typora已经使用了Pic-Go和阿里云OSS配置了图床,并使用super-prefix设置图片上传名为时间戳。当我在Typora编辑器中从一个包含图片的md文件(图片以本地路径表示)同时复制多张图片到另外一个md文件中时,所有图片的时间戳都是一样的,导致错误。
我的建议:是否可以添加一个随机数的选项,使文件名包含一个随机数,可以部分避免时间戳重复的问题
------Error Stack Begin------ Error: super-prefix conflict at Object.handle (C:\Users\23714\AppData\Roaming\picgo\node_modules\picgo-plugin-super-prefix\dist\index.js:45:27) at async D:\software\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:17809 at async Promise.all (index 0) at async $e.handlePlugins (D:\software\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:17731) at async $e.beforeUpload (D:\software\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:16829) at async $e.start (D:\software\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:15942) at async Tt.upload (D:\software\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:71270) at async Object.upload (D:\software\PicGo\resources\app.asar\background.js:2:653584) at async jn (D:\software\PicGo\resources\app.asar\background.js:2:656251) -------Error Stack End------- 2023-03-14 09:37:39 [PicGo SUCCESS] 插件卸载成功 2023-03-14 09:37:52 [PicGo INFO] Before transform 2023-03-14 09:37:52 [PicGo INFO] Transforming... Current transformer is [path] 2023-03-14 09:37:52 [PicGo INFO] Before upload 2023-03-14 09:37:52 [PicGo INFO] Uploading... Current uploader is [imgur] 2023-03-14 09:37:56 [PicGo SUCCESS]
比如原文件名或者随机数什么的,谢谢
类似:Molunerfinn/PicGo#347
不过后缀应该是针对所有图床的
配置的是这个
"picgo-plugin-super-prefix": {
"fileFormat": "YYYYMMDDHHmmss",
"prefixFormat": "image/YYYY/MM/DD/"
}
重命名时前缀却变成了i34pmge 34 是本地时间的分钟 如17:34
每次数字是 本地时间的分钟 p就不知道是从那里来的了
"imgUrl": "https://xxx-xxx-xxxx.aliyuncs.com/cnblogPictureBed/i34pmge/2021/01/05/20210105173435.png",
有时间自己也会研究一下的
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.