mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-01 09:22:44 -05:00
fix: Compress Images in Channels left at its default compresses channel images (#32693)
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user