Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebP support #979

Open
radagasus opened this issue Sep 3, 2024 · 1 comment
Open

WebP support #979

radagasus opened this issue Sep 3, 2024 · 1 comment

Comments

@radagasus
Copy link

I didn't immediately find something about this online, but it looks like WebP images aren't supported. You can try with this HTML :

<img src="data:image/webp;base64,UklGRoQAAABXRUJQVlA4WAoAAAAQAAAABAAABAAAQUxQSA0AAAABDzD/ERHiDh8R/Q8HAFZQOCBQAAAAcAIAnQEqBQAFAAIANCWwAnS6AMr/3EDeQAhMAAD+8MQL+e7fhylB4TGPeftaby9/E/+6Cent9x9O1WcNYH/4od/8D5uL//4sP/AiayAAAAA=" />

It is supposed to show a red dot. The PNG version of this snippet works fine. Neither work in the sandbox because the sandbox filters out URLs including data urls.

Aside from preprocessing input HTML to convert WebP images to some other format, is there anything that can be done about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@radagasus and others