From 18ed89abd511c29b9c439501fc42ec35679065f2 Mon Sep 17 00:00:00 2001 From: 72374 <250991390+72374@users.noreply.github.com> Date: Fri, 13 Mar 2026 14:57:20 +0100 Subject: [PATCH] feat: Increase the resolution-limit `WORSE_AVATAR_SIZE` from 128 to 256 The file-size of many images will already be smaller than 20 kB, when encoded at 256x256, and it can be a large improvement in quality. --- src/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.rs b/src/constants.rs index 28eb4c0fe..6850cf243 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -199,7 +199,7 @@ pub const WORSE_IMAGE_BYTES: usize = 130_000; // max. width/height and bytes of an avatar pub(crate) const BALANCED_AVATAR_SIZE: u32 = 512; pub(crate) const BALANCED_AVATAR_BYTES: usize = 60_000; -pub(crate) const WORSE_AVATAR_SIZE: u32 = 128; +pub(crate) const WORSE_AVATAR_SIZE: u32 = 256; pub(crate) const WORSE_AVATAR_BYTES: usize = 20_000; // this also fits to Outlook servers don't allowing headers larger than 32k. // max. width/height of images scaled down because of being too huge