Set small thumbnail size to 800x200
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 18 Dec 2024 10:28:14 +0000 (11:28 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 18 Dec 2024 10:28:14 +0000 (11:28 +0100)
wcfsetup/install/files/lib/system/file/processor/UserCoverPhotoFileProcessor.class.php

index b5e7604a6d119c96c7aa54f49de8580f5d6113bf..cfa3fd8c893855bcb62ffcac90a92a8f1fbd115f 100644 (file)
@@ -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,
             ),
         ];
     }