refac
This commit is contained in:
1 parent
bb821ab654
commit
b1d30673b6
3 files changed
+3
-3
No files matched your search
@@ -201,7 +201,7 @@
|
||||
ctx.drawImage(img, offsetX, offsetY, newWidth, newHeight);
|
||||
|
||||
// Get the base64 representation of the compressed image
|
||||
const compressedSrc = canvas.toDataURL('image/jpeg');
|
||||
const compressedSrc = canvas.toDataURL('image/webp', 0.8);
|
||||
|
||||
// Display the compressed image
|
||||
profileImageUrl = compressedSrc;
|
||||
|
||||
Reference in new issue
Block a user