Skip to content

Commit

Permalink
feat:图片上传支持压缩质量配置 (#11289)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzh11012 authored Nov 29, 2024
1 parent ee37347 commit 6a50f2c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/amis-editor/src/plugin/Form/InputImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
},
Expand Down

0 comments on commit 6a50f2c

Please sign in to comment.