This commit is contained in:
2023-10-07 21:18:18 +03:00
parent f2faec67fe
commit 956b8dc4e3
12 changed files with 378 additions and 113 deletions
+2 -1
View File
@@ -71,11 +71,12 @@ class ImageService
$image->filter(new $this->channelService->channel->imageFilters[$template]);
try {
$image->encode('webp', 75);
$image->save($templateFilePath);
} catch (Exception $e) {
$this->logger->error($e->getMessage());
return $this->notFoundImage;
}
$image->save($templateFilePath);
return $templateUri;
}