Skip to content

Commit

Permalink
Support dimensions for avif images
Browse files Browse the repository at this point in the history
Fixes #6141
  • Loading branch information
distantnative committed Jan 14, 2024
1 parent a537a4d commit 1636895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Image/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ public function dimensions(): Dimensions
}

if (in_array($this->mime(), [
'image/avif',
'image/gif',
'image/jpeg',
'image/jp2',
'image/png',
'image/gif',
'image/webp'
])) {
return $this->dimensions = Dimensions::forImage($this->root);
Expand Down

0 comments on commit 1636895

Please sign in to comment.