Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- static/index.html +1 -1
static/index.html
CHANGED
@@ -436,7 +436,7 @@ async function compressImage(file) {
|
|
436 |
// Convert canvas content to a blob
|
437 |
canvas.toBlob((blob) => {
|
438 |
resolve(blob);
|
439 |
-
}, 'image/jpeg', 0.
|
440 |
}
|
441 |
}
|
442 |
|
|
|
436 |
// Convert canvas content to a blob
|
437 |
canvas.toBlob((blob) => {
|
438 |
resolve(blob);
|
439 |
+
}, 'image/jpeg', 0.3); // Adjust quality as needed (0.7 is 70% quality)
|
440 |
}
|
441 |
}
|
442 |
|