picgo-plugin-img-avif 1.0.2 → 1.0.3

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 +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picgo-plugin-img-avif",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "一个压缩并转换图片格式的 PicGo 插件",
5
5
  "main": "src/index.js",
6
6
  "publishConfig": {
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