From: Cyperghost Date: Wed, 18 Dec 2024 10:28:14 +0000 (+0100) Subject: Set small thumbnail size to 800x200 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8cfb42eeacd5b68b63b7145048278e00361ca346;p=GitHub%2FWoltLab%2FWCF.git Set small thumbnail size to 800x200 --- diff --git a/wcfsetup/install/files/lib/system/file/processor/UserCoverPhotoFileProcessor.class.php b/wcfsetup/install/files/lib/system/file/processor/UserCoverPhotoFileProcessor.class.php index b5e7604a6d..cfa3fd8c89 100644 --- a/wcfsetup/install/files/lib/system/file/processor/UserCoverPhotoFileProcessor.class.php +++ b/wcfsetup/install/files/lib/system/file/processor/UserCoverPhotoFileProcessor.class.php @@ -21,6 +21,8 @@ use wcf\util\FileUtil; final class UserCoverPhotoFileProcessor extends AbstractFileProcessor { private const SESSION_VARIABLE = 'wcf_user_cover_photo_processor_%d'; + public const SMALL_THUMBNAIL_HEIGHT = 200; + public const SMALL_THUMBNAIL_WIDTH = 800; #[\Override] public function getObjectTypeName(): string @@ -220,9 +222,9 @@ final class UserCoverPhotoFileProcessor extends AbstractFileProcessor return [ new ThumbnailFormat( 'small', - UserCoverPhoto::MIN_HEIGHT, - UserCoverPhoto::MIN_WIDTH, - false, + self::SMALL_THUMBNAIL_HEIGHT, + self::SMALL_THUMBNAIL_WIDTH, + true, ), ]; }