PhotoMosaic: don't put portraits in landscape slots #38
@ -124,7 +124,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::TYPE_PORTRAIT, $image)); $i++)
|
for ($i = 0; $image && $i < 2 && ($image = $this->fetchImage(Image::TYPE_LANDSCAPE, $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