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

AVIF Support #22

Closed
una opened this issue Nov 11, 2021 · 7 comments
Closed

AVIF Support #22

una opened this issue Nov 11, 2021 · 7 comments
Labels
focus-area-proposal Focus Area Proposal requires:tests Requires additional tests to be written
Milestone

Comments

@una
Copy link

una commented Nov 11, 2021

Description
AVIF is a new image format derived from the keyframes of AV1 video. More about AVIF

Specification
AV1-AVIF

Tests
Test Files

Rationale
AVIF provides significant image size savings. With web performance being a key concern for developers, and images taking up the bulk of downloaded web content size, a more efficient file format helps significantly.

@una una added the proposal label Nov 11, 2021
@foolip foolip mentioned this issue Nov 12, 2021
36 tasks
@foolip foolip added the requires:tests Requires additional tests to be written label Nov 23, 2021
@foolip
Copy link
Member

foolip commented Nov 23, 2021

https://caniuse.com/avif says AVIF is supported in Chrome and Firefox.

https://wpt.fyi/results/apng is an example of image format tests in WPT, but this isn't very common. There are not tests that I know of for JPEG, PNG or WebP specifically, and I can't find any tests for AVIF. @una do you know if https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles is being used in automated browser testing? Would you propose bringing thorough AVIF testing into WPT, or just a simple "does it work at all" test?

On the rationale, what do we know about web developer demand for new image formats? While AVIF was mentioned twice in State of CSS 2021, that survey isn't really where I'd expect to find strong signals about it, since image formats isn't clearly in scope, and might not be mentioned even if it is a big problem.

@foolip
Copy link
Member

foolip commented Nov 26, 2021

I've learned from @dalecurtis that there are a few tests for AVIF in https://wpt.fyi/results/webcodecs/image-decoder.https.any.html.

Looking for other *.avif files in WPT and tests that use them, I found one more, a manual test:
https://wpt.live/html/canvas/element/manual/wide-gamut-canvas/canvas-createImageBitmap-e_srgb.html

Basic tests for AVIF in <img> would be needed here, of course.

@annevk
Copy link
Member

annevk commented Nov 29, 2021

It might be problematic to include tests that depend on another feature, e.g., ImageDecoder. (Or maybe that's what you meant.)

@foolip
Copy link
Member

foolip commented Dec 10, 2021

@annevk yes, I think we would need basic tests for AVIF in <img> which don't involve ImageDecoder, and if ImageDecoder won't ship before AVIF in all browsers then we shouldn't have any tests that depend on ImageDecoder.

@foolip
Copy link
Member

foolip commented Dec 10, 2021

This proposal wasn't fully resolved in yesterday's meeting, see #39 (comment).

There may be an intersection in what Google and Mozilla would like to support in 2022. However, that doesn't guarantee inclusion given Microsoft's comments about hardware support. We need to revisit this in the next meeting.

@scottlow @dlibby- can you clarify your position on this? If Google and Mozilla identify a common subset, would you like to include it in the metric and continue to investigate, or exclude and continue to investigate? (If it's the latter, then we don't need to spend more time here.)

@scottlow
Copy link
Contributor

@foolip, I chatted with our media team this afternoon. Their preference is for this to be excluded while we all continue to investigate.

@foolip
Copy link
Member

foolip commented Dec 16, 2021

Thanks @scottlow, that makes the discussion in today's meeting a lot simpler!

@foolip foolip closed this as completed Dec 16, 2021
@gsnedders gsnedders added focus-area-proposal Focus Area Proposal and removed proposal labels Sep 16, 2022
@gsnedders gsnedders added this to the Interop 2022 milestone Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal requires:tests Requires additional tests to be written
Projects
None yet
Development

No branches or pull requests

5 participants