From 0d1fce41c8e7173f3ef6cad3ab72bb5e4ab29953 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 3 Sep 2016 15:40:15 +0200 Subject: [PATCH] Glob portraits for small 4x4 tiles as well. --- models/PhotoMosaic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/PhotoMosaic.php b/models/PhotoMosaic.php index 5d61c1d..48c3836 100644 --- a/models/PhotoMosaic.php +++ b/models/PhotoMosaic.php @@ -123,7 +123,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)); $i++) + for ($i = 0; $image && $i < 2 && ($image = $this->fetchImage(Image::TYPE_LANDSCAPE | Image::TYPE_PORTRAIT, $image)); $i++) $photos[] = $image; // We prefer to have the portrait on the side, so prepare to process that first.