From cc5c10e1855e4becf345ab300ee905208ed30bc8 Mon Sep 17 00:00:00 2001 From: Bart Schuurmans Date: Thu, 16 Nov 2023 17:37:51 +0100 Subject: [PATCH] Revert "Glob portraits for small 4x4 tiles as well." This reverts commit 0d1fce41c8e7173f3ef6cad3ab72bb5e4ab29953. This prevents portrait photos from being assigned a cropped landscape slot in the mosaic, at the cost of the ordering being less chronological. --- models/PhotoMosaic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/PhotoMosaic.php b/models/PhotoMosaic.php index 901e8a0..eb51b89 100644 --- a/models/PhotoMosaic.php +++ b/models/PhotoMosaic.php @@ -124,7 +124,7 @@ class PhotoMosaic if ($num_portrait >= 1) { // Grab two more landscapes, so we can put a total of four tiles on the side. - for ($i = 0; $image && $i < 2 && ($image = $this->fetchImage(Image::TYPE_LANDSCAPE | Image::TYPE_PORTRAIT, $image)); $i++) + for ($i = 0; $image && $i < 2 && ($image = $this->fetchImage(Image::TYPE_LANDSCAPE, $image)); $i++) $photos[] = $image; // We prefer to have the portrait on the side, so prepare to process that first. -- 2.46.0