From a608dc59ef756be0622e415689b10b1d5aa184df Mon Sep 17 00:00:00 2001 From: P4ncake <76443059+P4ncake4451@users.noreply.github.com> Date: Sun, 10 May 2026 00:26:28 +0200 Subject: [PATCH] Stop webp images from being processed into webp This allows webp images to stay animated without being processed into the same format, also avoids processing the same format into the same format Signed-off-by: P4ncake <76443059+P4ncake4451@users.noreply.github.com> --- apps/labrinth/src/util/img.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/labrinth/src/util/img.rs b/apps/labrinth/src/util/img.rs index 8e8af67aad..db6e3e6491 100644 --- a/apps/labrinth/src/util/img.rs +++ b/apps/labrinth/src/util/img.rs @@ -129,6 +129,9 @@ fn process_image( if content_type.to_lowercase() == "image/gif" { return Ok((image_bytes, "gif".to_string())); } + if content_type.to_lowercase() == "image/webp" { + return Ok((image_bytes, "webp".to_string())); + } let mut img = image::load_from_memory(&image_bytes)?;