Glob portraits for small 4x4 tiles as well.

This commit is contained in:
Aaron van Geffen 2016-09-03 15:40:15 +02:00
parent 5cac86d87f
commit 0d1fce41c8

View File

@ -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.