Timothy Jaeryang Baek преди 1 месец
родител
ревизия
d9bbdd8dca
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      src/lib/components/chat/Settings/Account.svelte

+ 1 - 2
src/lib/components/chat/Settings/Account.svelte

@@ -132,8 +132,7 @@
 						ctx.drawImage(img, offsetX, offsetY, newWidth, newHeight);
 						ctx.drawImage(img, offsetX, offsetY, newWidth, newHeight);
 
 
 						// Get the base64 representation of the compressed image
 						// 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
 						// Display the compressed image
 						profileImageUrl = compressedSrc;
 						profileImageUrl = compressedSrc;