fixing various stuff

This commit is contained in:
2023-11-08 13:55:53 +02:00
parent d7afa5a322
commit 834715d773
6 changed files with 140 additions and 102 deletions
+2 -2
View File
@@ -68,9 +68,9 @@ class ImageService
return $this->notFoundImage;
}
$image->filter(new $this->channelService->channel->imageFilters[$template]);
$image = $image->filter(new $this->channelService->channel->imageFilters[$template]);
try {
$image->encode('webp', 75);
$image = $this->imageManager->make((string)$image->encode('webp', 75));
$image->save($templateFilePath);
} catch (Exception $e) {
$this->logger->error($e->getMessage());