Skip to content

Commit

Permalink
Add AVIF to known extensions in ImageResizer::normalizeImage() (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteotrubini committed Jun 11, 2024
1 parent 5d6e1f6 commit 9932f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/classes/ImageResizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ public static function normalizeImage($image): array
}
}

if (!$disk || !$path || !$selectedSource || (!in_array(strtolower(FileHelper::extension($path)), ['jpg', 'jpeg', 'png', 'webp', 'gif']))) {
if (!$disk || !$path || !$selectedSource || (!in_array(strtolower(FileHelper::extension($path)), ['jpg', 'jpeg', 'png', 'webp', 'gif', 'avif']))) {
if (is_object($image)) {
$image = get_class($image);
}
Expand Down

0 comments on commit 9932f0c

Please sign in to comment.