Skip to content

Commit

Permalink
Set small thumbnail size to 800x200
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyperghost committed Dec 18, 2024
1 parent 9a3942b commit 8cfb42e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
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
Expand Down Expand Up @@ -220,9 +222,9 @@ public function getThumbnailFormats(): array
return [
new ThumbnailFormat(
'small',
UserCoverPhoto::MIN_HEIGHT,
UserCoverPhoto::MIN_WIDTH,
false,
self::SMALL_THUMBNAIL_HEIGHT,
self::SMALL_THUMBNAIL_WIDTH,
true,
),
];
}
Expand Down

0 comments on commit 8cfb42e

Please sign in to comment.