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 detection #159

Open
randolf opened this issue Feb 6, 2019 · 1 comment
Open

WebP support detection #159

randolf opened this issue Feb 6, 2019 · 1 comment

Comments

@randolf
Copy link

randolf commented Feb 6, 2019

I'm wondering what approach I should use for adding a detection for WebP image format support. I'm thinking that a simple series of internal checks on browser types and minimum version numbers would be the way to go.

Here's a chart of which browser versions support the WebP image format:

https://caniuse.com/#feat=webp

Any suggestions? I'd be happy to write some code for a webp() subroutine that behaves like the mobile() subroutine.

Thanks.

@oalders
Copy link
Owner

oalders commented Feb 6, 2019

This sounds like a great feature to add. I don't have a lot in the way of suggestions. Following the pattern for mobile() sounds good. We'd just need appropriate tests to accompany the PR. Feel free to ping me if you run into any issues while getting this going.

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