feat: Do not scale images down by a small amount

This commit is contained in:
72374
2026-03-15 19:31:56 +01:00
committed by iequidoo
parent 52e4e42373
commit a25304604a

View File

@@ -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;
};