PhotoMosaic: fit batch of photos to best layout instead

This commit is contained in:
Aaron committed 2023-12-19 21:57:29 +01:00
1 parent d2fa547257
commit 553744aeb5
2 files changed
+144 -38

No files matched your search

+10
View File
@@ -145,6 +145,16 @@ class Image extends Asset
return $ratio >= 1 && $ratio <= 2;
}
public function getType()
{
if ($this->isPortrait())
return self::TYPE_PORTRAIT;
elseif ($this->isPanorama())
return self::TYPE_PANORAMA;
else
return self::TYPE_LANDSCAPE;
}
public function getThumbnails()
{
return $this->thumbnails;