This commit is contained in:
lexx committed 2023-10-07 21:18:18 +03:00
1 parent f2faec67fe
commit 956b8dc4e3
12 files changed
+378 -113

No files matched your search

+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;
}