From 58f894800c3718b5c5c0ac261dc5cf4aad3c0c81 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 8 Nov 2024 07:29:48 -0500 Subject: [PATCH] Upping default max_image_size from 256 to 512. (#5177) - Context: https://github.com/LemmyNet/lemmy-ui/issues/2796 --- config/defaults.hjson | 2 +- crates/utils/src/settings/structs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/defaults.hjson b/config/defaults.hjson index f0b9d56df..96dc30b79 100644 --- a/config/defaults.hjson +++ b/config/defaults.hjson @@ -76,7 +76,7 @@ # Timeout for uploading images to pictrs (in seconds) upload_timeout: 30 # Resize post thumbnails to this maximum width/height. - max_thumbnail_size: 256 + max_thumbnail_size: 512 } # Email sending configuration. All options except login/password are mandatory email: { diff --git a/crates/utils/src/settings/structs.rs b/crates/utils/src/settings/structs.rs index 8c28d908a..c95f66644 100644 --- a/crates/utils/src/settings/structs.rs +++ b/crates/utils/src/settings/structs.rs @@ -92,7 +92,7 @@ pub struct PictrsConfig { pub upload_timeout: u64, /// Resize post thumbnails to this maximum width/height. - #[default(256)] + #[default(512)] pub max_thumbnail_size: u32, }