Skip to content

Issues with images? #136

Closed
Closed

Description

@foolip

This isn't a propsal, just a discussion.

In https://www.w3.org/2022/09/14-interop-minutes.html @ydaniv said:

Huge demand for SVG. Images are also a problem. Features like loading attribute. It's important to get this 100% across browsers. AVIF shipped in Safari, could be a chance to get servers to start transcoding to AVIF. Bugs can hurt performance.

@ydaniv I wonder if you have more information about images, to understand if a general "Images" focus area could make sense. Does the loading attribute not work properly across browsers still? (It seems to be supported.) Are there other issues around images you had in mind?

Activity

  1. mathiasbynens commented on Sep 20, 2022

    @mathiasbynens

    One image-related problem is browser vendors incrementally shipping support for new image formats, i.e. first shipping support for static images, and only later shipping support for animated images. A current example of this is AVIF: although all major browsers support AVIF for still images, only Chrome supports animated AVIF. Per @jensimmons’s tweet, Safari will support animated AVIF in Safari 16.1 (scheduled for release in October 2022), but that still leaves Firefox with only static AVIF support for the time being.

    Until all browsers advertising AVIF support also support animations, this poses an interoperability problem where developers cannot rely on the browser to do format selection by using <picture> + <source>.

    WPT covers animated AVIF in the ImageDecoder tests:
    https://wpt.fyi/results/webcodecs/image-decoder.https.any.html?label=experimental&label=master&aligned (Subtests: “Test multi-track AVIF image decoding”) However, since ImageDecoder is not universally available yet, it would be nice to have some tests that do not depend on ImageDecoder as well, perhaps following the example in https://github.com/web-platform-tests/wpt/tree/master/apng.

    (It would be even nicer if browser vendors would commit to not shipping partial implementations unless there are separate MIME types for the static vs. animated image formats.)

  2. ydaniv commented on Sep 20, 2022

    @ydaniv

    Thanks @mathiasbynens, +1!

    @foolip the issue that was on my mind at the time was this bug with loading=lazy in Webkit which prevents from using this feature altogether.
    So it's bugs like this which cause interop headaches, but I'm not sure I can think of anything interesting here, interop-wise, since this is quite a specific scenario.
    And fetchpriority doesn't look like something that can actually block anything critical.

    So I gave this another thought (w/ @eportis-cloudinary - anything to add?), maybe nothing actionable at this point, besides the above, and random specific engine issues.

  3. foolip commented on Sep 20, 2022

    @foolip
    MemberAuthor

    @ydaniv it looks like that bug was fixed just 7 days ago in WebKit/WebKit@0c40ba6. I'd guess that it'll be in the next Safari Technology Preview, but you'd have to read release notes (like these) to know for sure. If you have the possibility, perhaps you could re-test this in the next release of STP?

  4. added this to the milestone on Sep 22, 2022
  5. gsnedders commented on Sep 22, 2022

    @gsnedders
    Member

    Let's label this as a focus area proposal despite it being kinda undefined so we don't forget about this.

  6. mathiasbynens commented on Sep 23, 2022

    @mathiasbynens

    WPT covers animated AVIF in the ImageDecoder tests: https://wpt.fyi/results/webcodecs/image-decoder.https.any.html?label=experimental&label=master&aligned (Subtests: “Test multi-track AVIF image decoding”) However, since ImageDecoder is not universally available yet, it would be nice to have some tests that do not depend on ImageDecoder as well, perhaps following the example in https://github.com/web-platform-tests/wpt/tree/master/apng.

    Update: It looks like we can’t “just” follow the APNG example. That test relies on last frame being shown after a certain timeout, which depends on the animation not looping — but AVIF animations always loop indefinitely.

  7. foolip commented on Sep 23, 2022

    @foolip
    MemberAuthor

    @mathiasbynens can we have a very long animated AVIF? If variable frame length isn't possible, then just 1 red frame and lots of green ones? A total of 10 seconds or so should do it.

  8. ydaniv commented on Sep 23, 2022

    @ydaniv

    @foolip sure, we're on it, hoping this will be in 16.1

  9. mathiasbynens commented on Sep 23, 2022

    @mathiasbynens

    @mathiasbynens can we have a very long animated AVIF? If variable frame length isn't possible, then just 1 red frame and lots of green ones? A total of 10 seconds or so should do it.

    web-platform-tests/wpt#36044

  10. styfle commented on Sep 28, 2022

    @styfle

    I also discovered this Safari loading="lazy" gray border bug that has been marked fixed but not released to stable yet.

  11. styfle commented on Sep 28, 2022

    @styfle

    And this Firefox white background while loading image bug which is not fixed yet. It is very noticeable for websites with dark backgrounds.

  12. mathiasbynens commented on Oct 5, 2022

    @mathiasbynens

    Interop 2023 proposals relevant to this topic:

  13. foolip commented on Oct 5, 2022

    @foolip
    MemberAuthor

    I'll go ahead and close this issue, as it's not a full proposal. If anyone has image-related features they'd like to suggest for Interop 2023, please see https://github.com/web-platform-tests/interop/blob/main/2023/README.md for the process.

  14. removed
    focus-area-proposal
    on Oct 5, 2022
  15. jzern commented on Oct 17, 2022

    @jzern

    WPT covers animated AVIF in the ImageDecoder tests: https://wpt.fyi/results/webcodecs/image-decoder.https.any.html?label=experimental&label=master&aligned (Subtests: “Test multi-track AVIF image decoding”) However, since ImageDecoder is not universally available yet, it would be nice to have some tests that do not depend on ImageDecoder as well, perhaps following the example in https://github.com/web-platform-tests/wpt/tree/master/apng.

    Update: It looks like we can’t “just” follow the APNG example. That test relies on last frame being shown after a certain timeout, which depends on the animation not looping — but AVIF animations always loop indefinitely.

    Looping with animated AVIF should be controllable with an edit-list, as defined by MIAF.

  16. added a commit that references this issue on Oct 21, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions