From 698eaf58545a4dad06af355fcd839fa9ab402360 Mon Sep 17 00:00:00 2001 From: Christoph Lehmann Date: Tue, 6 Feb 2024 14:26:14 +0100 Subject: [PATCH] !!! Remove gif from default file extensions With default settings only the first frame of animated gifs is processed. See https://docs.imgproxy.net/image_formats_support#animated-images-support One might re-enable gif processing by adding the file extension in extension settings. --- Classes/Processor/ImgProxyProcessor.php | 2 +- ext_conf_template.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Processor/ImgProxyProcessor.php b/Classes/Processor/ImgProxyProcessor.php index 275e145..daebc28 100644 --- a/Classes/Processor/ImgProxyProcessor.php +++ b/Classes/Processor/ImgProxyProcessor.php @@ -25,7 +25,7 @@ public function __construct( public function canProcessTask(TaskInterface $task) { $allowedFileExtensions = GeneralUtility::trimExplode(',', - empty($this->configuration['allowedExtensions']) ? 'jpg,jpeg,webp,avif,png,gif,tiff' : $this->configuration['allowedExtensions'] + empty($this->configuration['allowedExtensions']) ? 'jpg,jpeg,webp,avif,png,tiff' : $this->configuration['allowedExtensions'] ); return ( !empty($this->configuration['imgproxyUrl']) diff --git a/ext_conf_template.txt b/ext_conf_template.txt index bae7be7..14a41b4 100644 --- a/ext_conf_template.txt +++ b/ext_conf_template.txt @@ -7,6 +7,6 @@ salt= # cat=ImgProxy/; type=string; label=Format quality: Overrides GFX/jpg_quality. See https://docs.imgproxy.net/generating_the_url?id=format-quality formatQuality= # cat=ImgProxy/; type=string; label=Allowed file extensions -allowedExtensions=jpg,jpeg,webp,avif,png,gif,tiff +allowedExtensions=jpg,jpeg,webp,avif,png,tiff # cat=ImgProxy/; type=string; label=Helper url helperUrl= \ No newline at end of file