forked from Public/pics
Glob portraits for small 4x4 tiles as well.
This commit is contained in:
parent
5cac86d87f
commit
0d1fce41c8
@ -123,7 +123,7 @@ class PhotoMosaic
|
|||||||
if ($num_portrait >= 1)
|
if ($num_portrait >= 1)
|
||||||
{
|
{
|
||||||
// Grab two more landscapes, so we can put a total of four tiles on the side.
|
// 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;
|
$photos[] = $image;
|
||||||
|
|
||||||
// We prefer to have the portrait on the side, so prepare to process that first.
|
// We prefer to have the portrait on the side, so prepare to process that first.
|
||||||
|
Loading…
Reference in New Issue
Block a user