PhotoMosaic: fit batch of photos to best layout instead

This commit is contained in:
2023-12-19 21:57:29 +01:00
parent d2fa547257
commit 553744aeb5
2 changed files with 144 additions and 38 deletions

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;