Rewrite mosaic algorithm using declarative paradigm #42

Merged
Roflin merged 8 commits from new-mosaic into master 2023-12-03 12:37:41 +01:00
Showing only changes of commit b98785d7b2 - Show all commits

View File

@ -53,16 +53,6 @@ class PhotoMosaic
return false; return false;
} }
public static function getRecentPhotos()
{
return new self(AssetIterator::getByOptions([
'tag' => 'photo',
'order' => 'date_captured',
'direction' => 'desc',
'limit' => 15, // worst case: 3 rows * (portrait + 4 thumbs)
]));
}
public function getRow() public function getRow()
{ {
// Fetch the first image... // Fetch the first image...