mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
revert
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user