Skip to content

AVIF Support #22

Closed
Closed

Description

@una

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.

Activity

  1. added
    requires:tests
    on Nov 23, 2021
  2. foolip commented on Nov 23, 2021

    @foolip
    Member

    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.

  3. foolip commented on Nov 26, 2021

    @foolip
    Member

    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.

  4. annevk commented on Nov 29, 2021

    @annevk
    Member

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

  5. foolip commented on Dec 10, 2021

    @foolip
    Member

    @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.

  6. foolip commented on Dec 10, 2021

    @foolip
    Member

    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.)

  7. scottlow commented on Dec 16, 2021

    @scottlow
    Contributor

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

  8. foolip commented on Dec 16, 2021

    @foolip
    Member

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

  9. added
    focus-area-proposal
    and removed on Sep 16, 2022
  10. added this to the Interop 2022 milestone on Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposalrequires:tests

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions