cwebp optimizer supports only webp images? #192
tomaszkane
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
IMHO it should looks like: public function canHandle(Image $image): bool
{
return in_array($image->mime(), ['image/webp', 'image/jpeg', 'image/png', /* ...... */]);
} |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Why Cwebp optimizer accept only webp?
https://github.com/spatie/image-optimizer/blob/main/src/Optimizers/Cwebp.php#L13
cwebpbinary supports jpg, png, tiff and webp as input filehttps://developers.google.com/speed/webp/docs/cwebp?hl=en#description
All reactions