fix: limit max size to 1024

This commit is contained in:
2025-12-20 19:14:48 +01:00
parent a79f66d761
commit d02f66b4bd
+1 -1
View File
@@ -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");