This commit is contained in:
Timothy Jaeryang Baek 2025-03-30 20:38:47 -07:00
parent 9c00f3caf3
commit d9bbdd8dca

View File

@ -132,8 +132,7 @@
ctx.drawImage(img, offsetX, offsetY, newWidth, newHeight);
// Get the base64 representation of the compressed image
const jpegQuality = 0.15;
const compressedSrc = canvas.toDataURL('image/jpeg', jpegQuality);
const compressedSrc = canvas.toDataURL('image/jpeg');
// Display the compressed image
profileImageUrl = compressedSrc;