feat:图片上传支持压缩质量配置 (#11289)
Some checks are pending
CodeQL / Analyze (javascript) (push) Waiting to run
gh-pages / build (20.x) (push) Waiting to run

This commit is contained in:
Qnets 2024-11-29 16:28:13 +08:00 committed by GitHub
parent ee37347afc
commit 6a50f2cc91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -370,6 +370,18 @@ export class ImageControlPlugin extends BasePlugin {
{label: '绘图区域', value: 1}
],
pipeOut: valuePipeOut
},
{
name: 'cropQuality',
type: 'input-number',
label: tipedLabel(
'压缩质量',
'裁剪后会重新生成,体积可能会变大,需要设置压缩质量降低体积,数值越小压缩率越高'
),
step: 0.1,
min: 0.1,
max: 1,
value: 0.7
}
]
},