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

Is the color space preserved during toBlob() and toDataURL() #119

Closed
palemieux opened this issue Jun 19, 2024 · 1 comment · Fixed by #125
Closed

Is the color space preserved during toBlob() and toDataURL() #119

palemieux opened this issue Jun 19, 2024 · 1 comment · Fixed by #125

Comments

@palemieux
Copy link
Contributor

From w3ctag/design-reviews#917 (comment)

The used color space is a property of CanvasRenderingContext2D, but HTMLCanvasElement provides methods for exporting the canvas contents as an image (toBlob(), toDataURL()). Is the color space preserved during these operations? (again this also applies to wide gamut)

@palemieux
Copy link
Contributor Author

Based on previous discussions, the intent is for toDataURL() and toBlob() to produce resources that best match the fidelity of the underlying canvas (subject to the limitations of the implementation and the requested format).

This statement could be added to the document.

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

Successfully merging a pull request may close this issue.

1 participant