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