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

Support for images #50

Closed
cynthia opened this issue Apr 22, 2020 · 4 comments · Fixed by #152
Closed

Support for images #50

cynthia opened this issue Apr 22, 2020 · 4 comments · Fixed by #152
Labels
image issues related to image decoding and encoding tag-tracker Group bringing to attention of the TAG, or tracked by the TAG but not needing response.

Comments

@cynthia
Copy link
Member

cynthia commented Apr 22, 2020

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.

@sandersdan
Copy link
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.

@ylafon ylafon added the tag-tracker Group bringing to attention of the TAG, or tracked by the TAG but not needing response. label Apr 22, 2020
@chcunningham chcunningham added this to the Q1 2021 milestone Feb 19, 2021
@chcunningham
Copy link
Collaborator

I'll have PR out shortly.

@padenot
Copy link
Collaborator

padenot commented Apr 27, 2021

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.

@dalecurtis
Copy link
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

@padenot padenot added the image issues related to image decoding and encoding label Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
image issues related to image decoding and encoding tag-tracker Group bringing to attention of the TAG, or tracked by the TAG but not needing response.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants