Git Product home page Git Product logo

picgo-plugin-super-prefix's Introduction

picgo-plugin-super-prefix

A PicGo plugin for elegant file name prefix

可以很 优雅地 生成文件存储路径的插件


例如

/img/2019/11/18/20191118005858.jpeg


修改配置参数后生效

配置


参数 建议值 说明
prefixFormat YYYY/MM/DD/ 文件名个性前缀格式(以/结尾)
fileFormat YYYYMMDDHHmmss 文件名个性格式

picgo-plugin-super-prefix's People

Contributors

gclove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

picgo-plugin-super-prefix's Issues

图片名如何支持 MD5

插件很棒!
由于一些问题。上传的时候重复的上传会出现冗余图片。
图片如何设置 MD5 命名。
谢谢!

同时复制多张图片时,时间戳重复 | When copying multiple images at the same time, the timestamps are duplicated

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文件中时,所有图片的时间戳都是一样的,导致错误。

我的建议:是否可以添加一个随机数的选项,使文件名包含一个随机数,可以部分避免时间戳重复的问题

无法上传BUG

  • PicGo 2.3.1
  • super-prefx 1.2.2
    ------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]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.