From a25304604affdf718544351e799860d17562e07c Mon Sep 17 00:00:00 2001 From: 72374 <250991390+72374@users.noreply.github.com> Date: Sun, 15 Mar 2026 19:31:56 +0100 Subject: [PATCH] feat: Do not scale images down by a small amount --- src/blob.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blob.rs b/src/blob.rs index 6e8aae5f0..1d784bb36 100644 --- a/src/blob.rs +++ b/src/blob.rs @@ -450,7 +450,9 @@ impl<'a> BlobObject<'a> { max_wh }; - if target_wh > n_px_longest_side { + if target_wh > n_px_longest_side + || !is_avatar && target_wh > (f64::from(n_px_longest_side) * 0.98) as u32 + { target_wh = n_px_longest_side; };