Skip to content

Commit

Permalink
add webp conversion support (#2928)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim-Webfox authored May 23, 2022
1 parent e856dc7 commit 6503d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Conversions/Conversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function shouldBeQueued(): bool
public function getResultExtension(string $originalFileExtension = ''): string
{
if ($this->shouldKeepOriginalImageFormat()) {
if (in_array(strtolower($originalFileExtension), ['jpg', 'jpeg', 'pjpg', 'png', 'gif'])) {
if (in_array(strtolower($originalFileExtension), ['jpg', 'jpeg', 'pjpg', 'png', 'gif', 'webp'])) {
return $originalFileExtension;
}
}
Expand Down

0 comments on commit 6503d40

Please sign in to comment.