From 6b028aac419ce83bc780b988c673cd8f3ef5ee40 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 1 Jan 2023 19:37:22 +0100 Subject: [PATCH] AlbumIndex: enable rendering of more double-density thumbnails --- templates/AlbumIndex.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/templates/AlbumIndex.php b/templates/AlbumIndex.php index c3118845..29a856bf 100644 --- a/templates/AlbumIndex.php +++ b/templates/AlbumIndex.php @@ -46,8 +46,17 @@ class AlbumIndex extends SubTemplate '; if (isset($album['thumbnail'])) + { + $thumbs = []; + foreach ([1, 2] as $factor) + $thumbs[$factor] = $album['thumbnail']->getThumbnailUrl( + static::TILE_WIDTH * $factor, static::TILE_HEIGHT * $factor, true, true); + echo ' - '; + '; + } else echo ' ';