private function createMediaThumbnails(Media
$media) { if (!
$this->
imageExists($media)) { throw new Exception(sprintf('Base image file "%s" does not exist',
$media->
getPath()));
} $thumbnails =
$media->
getThumbnailFilePaths();
foreach ($thumbnails as $size =>
$path) { if (!
$this->force &&
$this->
thumbnailExists($path)) { continue;
} $this->generator->
createMediaThumbnail($media,
[$size], true
);
} } /**
* @param string $thumbnailPath
*
* @throws Exception
*
* @return bool
*/