forked from Public/pics
PhotoMosaic: improve heuristic for landscape/portrait row
This commit is contained in:
parent
31ea4196cf
commit
68ef80fb9f
@ -165,7 +165,10 @@ class PhotoMosaic
|
|||||||
return [$photos, 'single'];
|
return [$photos, 'single'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// A boring set it is, then.
|
// Last resort: majority vote
|
||||||
|
if ($num_portrait > $num_landscape)
|
||||||
|
return [$photos, 'portraits'];
|
||||||
|
else
|
||||||
return [$photos, 'row'];
|
return [$photos, 'row'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user