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

Image audit: check for animated GIFs that could be videos #2586

Closed
samdutton opened this issue Jun 23, 2017 · 4 comments
Closed

Image audit: check for animated GIFs that could be videos #2586

samdutton opened this issue Jun 23, 2017 · 4 comments

Comments

@samdutton
Copy link
Member

Video with muted autoplay can often be used instead of an animated GIF.

If an image element is found with GIF src (over, say, 20KB in file size) give a warning, something like: 'It appears that you might be using an animated GIFs. Consider using a video (with autoplay muted) instead.' If possible, link to video version of animated GIF and advice on transcoding.

@wardpeet
Copy link
Collaborator

It looks like we can do something like https://github.com/mailcharts/animated-gif-detector so we make sure it's an animated GIF.

I guess this audit should be placed under Do better web?

@paulirish
Copy link
Member

I guess this audit should be placed under Do better web?

eh. ideally our /audits/ folder is grouped by category a bit more... kind of like https://github.com/Modernizr/Modernizr/tree/master/feature-detects

@paulirish
Copy link
Member

animated-gif-detector looks great. yeah i think that'd work out nicely.

@brendankenny
Copy link
Member

was fixed in #4885!

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

No branches or pull requests

6 participants