picgo-plugin-img-avif 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +11 -3
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "picgo-plugin-img-avif",
3
- "version": "1.0.2",
4
- "description": "一个压缩并转换图片格式的 PicGo 插件",
3
+ "version": "1.0.4",
4
+ "description": "PicGo图片格式转换插件, 支持JPEG、PNG、WebP、AVIF格式转换和压缩",
5
5
  "main": "src/index.js",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -9,8 +9,16 @@
9
9
  "homepage": "https://github.com/liyao52033/picgo-plugin-img-avif",
10
10
  "keywords": [
11
11
  "picgo",
12
+ "picgo-plugin",
12
13
  "picgo-gui-plugin",
13
- "picgo-plugin"
14
+ "image",
15
+ "avif",
16
+ "webp",
17
+ "image-compression",
18
+ "image-conversion",
19
+ "img-avif",
20
+ "图片压缩",
21
+ "格式转换"
14
22
  ],
15
23
  "author": "liyao52033",
16
24
  "license": "MIT",
package/src/index.js CHANGED
@@ -46,7 +46,7 @@ const config = (ctx) => {
46
46
  // Core handler function
47
47
  const handle = async (ctx) => {
48
48
  // Get user configuration
49
- const userConfig = ctx.getConfig('picgo-plugin-converter') || {}
49
+ const userConfig = ctx.getConfig('picgo-plugin-img-avif') || {}
50
50
  const targetFormat = userConfig.format || 'original'
51
51
  const quality = parseInt(userConfig.quality) || 80
52
52
  const lossless = userConfig.lossless || false