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

Canvas, bitmap rendering context and readback #5

Open
svgeesus opened this issue Apr 28, 2020 · 3 comments
Open

Canvas, bitmap rendering context and readback #5

svgeesus opened this issue Apr 28, 2020 · 3 comments
Assignees

Comments

@svgeesus
Copy link
Contributor

Originally raised on the TAG review of Lab

@dbaron wrote:

ImageBitmapRenderingContext
including readback APIs (e.g., the format of raw bitmap data that you get back)

discussion of those issues to be added to Canvas API seciton of the report

@svgeesus
Copy link
Contributor Author

svgeesus commented Apr 28, 2020

originally noted here

gs to audit to ensure that the platform has good support throughout for out-of-sRGB colors:

@palemieux
Copy link
Contributor

@ccameron-chromium Does the proposal at https://github.com/WICG/canvas-color-space/blob/master/CanvasColorSpaceProposal.md include a readback API as suggested by TAG?

@ccameron-chromium
Copy link
Collaborator

Yes, that adds a mechanism for reading back data outside of the sRGB gamut (ImageData can be uint8, uint16, or float32 now, and its gamut may be srgb, display-p3, or rec2020). Of note is that float32 ImageData can use numbers outside of the range of [0, 1] to represent any color (in any gamut).

The spec also says "The functions toDataURL and toBlob should produce resources that best match the fidelity of the underlying canvas (subject to the limitations of the implementation and the requested format)."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants