Skip to content

Commit

Permalink
Merge pull request #4516 from neos/bugfix/3544-unset-thumbnail-presets
Browse files Browse the repository at this point in the history
BUGFIX: Allow unsetting thumbnail presets
  • Loading branch information
kitsunet authored Oct 17, 2023
2 parents 981fadf + 86e69ea commit de0a21f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Neos.Media/Classes/Domain/Service/ThumbnailGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ public function createThumbnails(AssetInterface $image)
{
if ($this->autoCreateThumbnailPresets) {
foreach ($this->thumbnailService->getPresets() as $preset => $presetConfiguration) {
$thumbnailConfiguration = $this->thumbnailService->getThumbnailConfigurationForPreset($preset, $this->asyncThumbnails);
$this->thumbnailService->getThumbnail($image, $thumbnailConfiguration);
if ($presetConfiguration) {
$thumbnailConfiguration = $this->thumbnailService->getThumbnailConfigurationForPreset($preset, $this->asyncThumbnails);
$this->thumbnailService->getThumbnail($image, $thumbnailConfiguration);
}
}
}
}
Expand Down

0 comments on commit de0a21f

Please sign in to comment.