Webp and toHtml() #1743
Answered
by
freekmurze
intruder897
asked this question in
Ideas
Webp and toHtml()
#1743
-
Html is not rendered for webp images. This is caused by this check if (! (new Image())->canHandleMime($this->mime_type)) {
return '';
} Probably it must be like this: if (! (new Image())->canHandleMime($this->mime_type) && ! (new Webp())->canHandleMime($this->mime_type)) {
return '';
} |
Beta Was this translation helpful? Give feedback.
Answered by
freekmurze
May 27, 2020
Replies: 1 comment
-
Feel free to PR this. Make sure to include tests. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
freekmurze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feel free to PR this. Make sure to include tests.