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 there a way to add ICC profile to the generated image? #618

Open
rajat10cube opened this issue Mar 8, 2023 · 2 comments
Open

Is there a way to add ICC profile to the generated image? #618

rajat10cube opened this issue Mar 8, 2023 · 2 comments

Comments

@rajat10cube
Copy link

I am generating a 16 bit png image using the following command:
var image = new Image(width, height, data, {
kind: "RGB",
bitDepth: 16,
});
Here data is Uint16Array(width * height * 3), where I am filling the RGB values. The image is successfully being generated and I am able to view it.
But before generating the image, I also want to add ICC color profile to the image. I do have the icc file, but not sure how to add it to the image.

@targos
Copy link
Member

targos commented Mar 9, 2023

I don't think there is support for it yet, but that could be interesting to add. What image format are you generating? PNG?

@rajat10cube
Copy link
Author

@targos Yes, I am generating 16 bit PNG images.

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

2 participants