forked from natuka/web.puabadge.com
修改:优化cartoon的裁剪比例
This commit is contained in:
1 parent
482f6a57ce
commit
6c55986337
2 files changed
+10
-12
No files matched your search
+6
-11
@@ -73,17 +73,12 @@ export const cartoonConfig = {
|
||||
minHeight: 300,
|
||||
maxSize: 10 * 1024 * 1024, // 10MB
|
||||
maxReferCount: 3,
|
||||
cropOptions: {
|
||||
canScale: true,
|
||||
autoCropWidth: 1024,
|
||||
autoCropHeight: 1024,
|
||||
ceilbutton: true,
|
||||
infoTrue: true,
|
||||
fixed: false,
|
||||
fixedNumber: [3, 4],
|
||||
fixedBox: false,
|
||||
canMoveBox: true,
|
||||
enlarge: 2
|
||||
/** 选图后强制 3:4;可缩放图片;允许框超出图片,超出区域白底填充 */
|
||||
crop: {
|
||||
ratio: [3, 4] as [number, number],
|
||||
fillColor: '#ffffff',
|
||||
outputType: 'jpeg' as const,
|
||||
enlarge: 2,
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user