mirror of
https://github.com/open-webui/open-webui
synced 2025-04-02 12:09:06 +00:00
adjust avatar quality again, to 0.25
This commit is contained in:
parent
d542881ee4
commit
9ba3f4c9a8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user