New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 841325 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 25
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task

Blocking:
issue 634542



Sign in to add a comment

Add convertToBlob() to canvas color management proposal

Project Member Reported by zakerinasab@chromium.org, May 9 2018

Issue description

convertToBlob() must be added to canvas color management proposal. The current IDL interface is as follows:

enum ImageColorSpace {
    "srgb", // default
    "rec2020",
    "display-p3",
};

enum ImagePixelFormat {
    "8-8-8-8", // default
    "uint16",
};

dictionary ImageEncodeOptions {
    DOMString type = "image/png";
    unrestricted double quality = 1.0;
    ImageColorSpace colorSpace = "srgb";
    ImagePixelFormat pixelFormat = "8-8-8-8";
};

Promise<Blob> convertToBlob(optional ImageEncodeOptions options);

 
When you do that, also update the regular toBlob()/toDataURL() section to state that we want them to "NOT" include the sRGB color profile in the encoded image.
Cc: -junov@chromium.org
Status: Fixed (was: Assigned)
This is done.

Sign in to add a comment