Skip to content

Commit

Permalink
fix older PHP versions AVIF mime
Browse files Browse the repository at this point in the history
  • Loading branch information
0xb4lint committed Jul 22, 2023
1 parent 7be2b03 commit d038171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Optimizers/Avifenc.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Avifenc extends BaseOptimizer

public function canHandle(Image $image): bool
{
return $image->mime() === 'image/avif';
return $image->mime() === 'image/avif' || $image->extension() === 'avif';
}

public function getCommand(): string
Expand Down

0 comments on commit d038171

Please sign in to comment.