diff --git a/src/lib/components/chat/Settings/Account.svelte b/src/lib/components/chat/Settings/Account.svelte index 997ec49c9..eb6c21147 100644 --- a/src/lib/components/chat/Settings/Account.svelte +++ b/src/lib/components/chat/Settings/Account.svelte @@ -132,7 +132,8 @@ ctx.drawImage(img, offsetX, offsetY, newWidth, newHeight); // Get the base64 representation of the compressed image - const compressedSrc = canvas.toDataURL('image/jpeg'); + const jpegQuality = 0.25; + const compressedSrc = canvas.toDataURL('image/jpeg', jpegQuality); // Display the compressed image profileImageUrl = compressedSrc;