Skip to content

Commit

Permalink
BUGFIX: Allow unsetting thumbnail presets
Browse files Browse the repository at this point in the history
Resolves: #3544
  • Loading branch information
Sebobo authored Sep 15, 2023
1 parent b3a1327 commit 86e69ea
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 86e69ea

Please sign in to comment.