diff --git a/src/blob.rs b/src/blob.rs index 27c44f3e31..46f70a9b2e 100644 --- a/src/blob.rs +++ b/src/blob.rs @@ -468,7 +468,7 @@ impl<'a> BlobObject<'a> { )); } - target_wh = target_wh * 2 / 3; + target_wh = target_wh * 7 / 8; } else { info!( context, diff --git a/src/constants.rs b/src/constants.rs index 1eb852b348..d89f2f1289 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