forked from Public/pics
PhotoMosaic: fit batch of photos to best layout instead
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user