PhotoMosaic: improve heuristic for landscape/portrait row
This commit is contained in:
1 parent
31ea4196cf
commit
68ef80fb9f
1 file changed
+4
-1
@@ -165,7 +165,10 @@ class PhotoMosaic
|
||||
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'];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user