mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix: Compress Images in Channels left at its default compresses channel images (#32693)
This commit is contained in:
parent
f77a89cccb
commit
70fb5462ea
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@
|
|||
const compressImageHandler = async (imageUrl: string, settings: any = {}, config: any = {}) => {
|
||||
// Quick shortcut so we don’t do unnecessary work.
|
||||
const settingsCompression =
|
||||
(settings?.imageCompression && settings?.imageCompressionInChannels) ?? false;
|
||||
(settings?.imageCompression ?? false) && (settings?.imageCompressionInChannels ?? true);
|
||||
const configWidth = config?.file?.image_compression?.width ?? null;
|
||||
const configHeight = config?.file?.image_compression?.height ?? null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue