Automattic / Automattic/node-canvas

apply icc profile to output

Open
#2,120 2 comments 2 reactions 0 assignees View on GitHub
Feature
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

## Issue or Feature
- [ ] I have some PNGs with custom ICC profile (Display P3 or DCI-P3: I'm guessing they're the same?), which I'm stacking on a Canvas, but I'm unable to set this same icc profile when saving the result into a file
- [ ] how can I apply the proper icc profile ?

I did try following [this](https://github.com/WICG/canvas-color-space/blob/main/CanvasColorSpaceProposal.md#color-spaces), but it does not seem to be supported:
```
const ctx = canvas.getContext('2d', { colorSpace: 'display-p3' } );
```

## Steps to Reproduce

NA

## Your Environment
* canvas 2.10.1
* Node 16.16.0, win 11

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.