/**
* Creates the thumbnail files in the different sizes which configured in the album settings.
*/
public function createAlbumThumbnails(Album
$album) { // Is image media?
if ($this->type !== self::TYPE_IMAGE
) { return;
} // Check if the album has loaded correctly and should be created for the album thumbnails?
if ($album->
getSettings() === null || !
$album->
getSettings()->
getCreateThumbnails()) { return;
} $defaultSizes =
$this->
getDefaultThumbnails();
$defaultSize =
implode('x',
$defaultSizes[0
]);
// Load the configured album thumbnail sizes
$sizes =
$album->
getSettings()->
getThumbnailSize();
$sizes[] =
$defaultSize;
// Iterate the sizes and create the thumbnails
foreach ($sizes as $size) {