mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
feat: Do not scale images down by a small amount
This commit is contained in:
@@ -450,7 +450,9 @@ impl<'a> BlobObject<'a> {
|
|||||||
max_wh
|
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;
|
target_wh = n_px_longest_side;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user