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 HDR AVIF via HDR Canvas #19

Open
mdrejhon opened this issue Mar 3, 2023 · 0 comments
Open

Support HDR AVIF via HDR Canvas #19

mdrejhon opened this issue Mar 3, 2023 · 0 comments

Comments

@mdrejhon
Copy link

mdrejhon commented Mar 3, 2023

Microsoft Edge 110+ supports HDR Canvas, HDR AV1 video, and HDR JPEG

Edge HDR canvas can be done via enabling "Experimental Features" flag in edge://flags and then creating a canvas via:

// Create HDR canvas in Chrome/Edge 110+if enabled in chrome://flags "Experimental Features ON"
surface = canvas.getContext("2d", {colorSpace:'rec2100-pq', pixelFormat:'float16'});
canvas.drawingBufferColorSpace = 'rec2100-pq';
canvas.unpackColorSpace = 'rec2100-pq';

Then HDR works. I'd like to support HDR AVIF files in Microsoft Edge.

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

1 participant