/**
* This method creates thumbnails based on the request.
*
* @return void
*/
public function createThumbnailsAction() { $offset =
$this->
Request()->
getParam('offset'
);
$limit =
$this->
Request()->
getParam('limit'
);
$albumId =
$this->
Request()->
getParam('albumId'
);
$medias =
$this->
getMediaForAlbumId($albumId,
$offset,
$limit);
$settings =
$this->
getAlbumSettings($albumId);
$thumbnailSizes =
$settings->
getThumbnailSize();
if (empty($thumbnailSizes) ||
empty($thumbnailSizes[0
])) { $this->
View()->
assign(['success' => false
]);
return;
} /** @var Manager $manager */