Skip to content

Commit

Permalink
!!! Remove gif from default file extensions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Christoph Lehmann committed Feb 6, 2024
1 parent 3179be7 commit 698eaf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Processor/ImgProxyProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down
2 changes: 1 addition & 1 deletion ext_conf_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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=

0 comments on commit 698eaf5

Please sign in to comment.