Revert "Glob portraits for small 4x4 tiles as well."
This reverts commit 0d1fce41c8
.
This prevents portrait photos from being assigned a cropped landscape
slot in the mosaic, at the cost of the ordering being less
chronological.
This commit is contained in:
parent
202e263ea7
commit
cc5c10e185
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user