fix: limit max size to 1024
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ const targetSize = computed<number>(() => {
|
||||
if (!srcWidth.value || !srcHeight.value) {
|
||||
return 100;
|
||||
}
|
||||
return Math.min(srcWidth.value, srcHeight.value);
|
||||
return Math.min(1024, srcWidth.value, srcHeight.value);
|
||||
});
|
||||
|
||||
const input = useTemplateRef<HTMLInputElement>("input");
|
||||
|
||||
Reference in New Issue
Block a user