Skip to content

Commit

Permalink
feat:图片上传支持压缩质量配置
Browse files Browse the repository at this point in the history
  • Loading branch information
hzh11012 committed Nov 29, 2024
1 parent 86d3e0c commit 30786a2
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 @@ -365,6 +365,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 30786a2

Please sign in to comment.