This commit is contained in:
Timothy Jaeryang Baek
2026-03-06 16:25:00 -06:00
parent d8bb8c58d0
commit b3622474d7
+1 -1
View File
@@ -318,7 +318,7 @@ async function resizeImageToDataURL(
export const compressImage = async (imageUrl, maxWidth, maxHeight) => {
return new Promise((resolve, reject) => {
const img = new Image();
img.onload = () => {
img.onload = async () => {
let width = img.width;
let height = img.height;