adjust avatar quality again, to 0.25

This commit is contained in:
Jan Kessler 2025-03-31 07:05:27 +02:00
parent d542881ee4
commit 9ba3f4c9a8
No known key found for this signature in database
GPG Key ID: FCF0DCB4ADFC53E7

View File

@ -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;