We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0cfdc2 commit 6ce9415Copy full SHA for 6ce9415
1 file changed
src/blob.rs
@@ -450,7 +450,11 @@ impl<'a> BlobObject<'a> {
450
max_wh
451
};
452
453
- if target_wh > n_px_longest_side {
+ // TODO: Increase the multiplier (something between 0.95 and 0.99 seems appropriate),
454
+ // when a better resampling-function than `thumbnail` is used.
455
+ if target_wh > n_px_longest_side
456
+ || !is_avatar && target_wh > (f64::from(n_px_longest_side) * 0.89) as u32
457
+ {
458
target_wh = n_px_longest_side;
459
460
0 commit comments