Skip to content

Support for images #50

Closed
Closed

Description

@cynthia

Is there a path for using this proposal to encode/decode images?

I'm suspecting it's possible by implementing the image container and somehow getting the binary keyframe out, but how to plumb this is somewhat unclear.

Given that a lot of developers have been asking for functionality to encode/decode images without using an HTMLImageElement as an intermediary, it would be nice to have this use case covered.

Activity

  1. sandersdan commented on Apr 22, 2020

    @sandersdan
    Contributor

    This has been discussed in #13, and Dale has an explainer for a proposed WebCodecs-like API: https://github.com/dalecurtis/image-decoder-api/blob/master/explainer.md.

  2. added
    tag-tracker
    on Apr 22, 2020
  3. added this to the Q1 2021 milestone on Feb 19, 2021
  4. chcunningham commented on Feb 19, 2021

    @chcunningham
    Collaborator

    I'll have PR out shortly.

  5. added a commit that references this issue on Mar 17, 2021
    8479a9b
  6. padenot commented on Apr 27, 2021

    @padenot
    Collaborator

    I'll note that the PR is about decoding, not encoding, so this needs to stay open once merged. I certainly agree that starting with the decoding side is the right move though, and this can be shipped gradually.

  7. dalecurtis commented on Apr 27, 2021

    @dalecurtis
    Contributor

    Sounds good. Yes we didn't prioritize image encoding since that already exists to a certain extent:
    https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL

  8. added
    image
    on Apr 29, 2021
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

    imagetag-tracker

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions