mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-10 20:15:56 +00:00
1024px banner
This commit is contained in:
parent
96cf01751b
commit
f04da5eb53
2 changed files with 6 additions and 14 deletions
|
@ -66,13 +66,9 @@
|
|||
max_thumbnail_size: 512
|
||||
# Maximum size for user avatar, community icon and site icon.
|
||||
max_avatar_size: 512
|
||||
# Maximum size for user, community and site banner.
|
||||
#
|
||||
# TODO: Unfortunately pictrs can only resize images to fit in a*a square, no rectangle.
|
||||
# Otherwise we have to use crop, or use max_width/max_height which throws error
|
||||
# if image is larger.
|
||||
# TODO: whats a sensible default here?
|
||||
max_banner_size: 512
|
||||
# Maximum size for user, community and site banner. Larger images are downscaled to fit
|
||||
# into a square of this size.
|
||||
max_banner_size: 1024
|
||||
# Prevent users from uploading images for posts or embedding in markdown. Avatars, icons and
|
||||
# banners can still be uploaded.
|
||||
image_upload_disabled: false
|
||||
|
|
|
@ -109,13 +109,9 @@ pub struct PictrsConfig {
|
|||
#[default(512)]
|
||||
pub max_avatar_size: u32,
|
||||
|
||||
/// Maximum size for user, community and site banner.
|
||||
///
|
||||
/// TODO: Unfortunately pictrs can only resize images to fit in a*a square, no rectangle.
|
||||
/// Otherwise we have to use crop, or use max_width/max_height which throws error
|
||||
/// if image is larger.
|
||||
/// TODO: whats a sensible default here?
|
||||
#[default(512)]
|
||||
/// Maximum size for user, community and site banner. Larger images are downscaled to fit
|
||||
/// into a square of this size.
|
||||
#[default(1024)]
|
||||
pub max_banner_size: u32,
|
||||
|
||||
/// Prevent users from uploading images for posts or embedding in markdown. Avatars, icons and
|
||||
|
|
Loading…
Reference in a new issue