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.