mirror of
https://github.com/open-webui/open-webui
synced 2025-06-08 23:47:14 +00:00
revert
This commit is contained in:
parent
9c00f3caf3
commit
d9bbdd8dca
@ -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');
|
||||||
const compressedSrc = canvas.toDataURL('image/jpeg', jpegQuality);
|
|
||||||
|
|
||||||
// Display the compressed image
|
// Display the compressed image
|
||||||
profileImageUrl = compressedSrc;
|
profileImageUrl = compressedSrc;
|
||||||
|
Loading…
Reference in New Issue
Block a user