Hi @mandykoh! Thanks again for your help with the Display P3 profiles.
I've got the profile detection working now, but the new issue is that the built in Go image encoding for jpeg / png images doesn't embed ICC profiles or have a way to do this as far as I can tell.
For conversions from Display P3 -> sRGB I suppose this is okay since images without an ICC profile are generally understood to be in the sRGB color space. That said, it would be nice to be able to write images with sRGB, Display P3, Adobe RGB or ProPhoto color profiles after using your library to linearize and convert between color profiles.
I understand it would be a lot of work to add full support for this, but it would be nice to at least be able to tag images with an existing profile once I write them / during the encoding process.
This repository has Creative Commons licensed compact ICC profiles we could use:
https://github.com/saucecontrol/Compact-ICC-Profiles
Do you know how much work it would be to add support for at least attaching these profiles to images?
And if you're too busy to work on this, I'd be happy to take a crack at it if you could give me a few pointers.
Hi @mandykoh! Thanks again for your help with the Display P3 profiles.
I've got the profile detection working now, but the new issue is that the built in Go image encoding for jpeg / png images doesn't embed ICC profiles or have a way to do this as far as I can tell.
For conversions from Display P3 -> sRGB I suppose this is okay since images without an ICC profile are generally understood to be in the sRGB color space. That said, it would be nice to be able to write images with sRGB, Display P3, Adobe RGB or ProPhoto color profiles after using your library to linearize and convert between color profiles.
I understand it would be a lot of work to add full support for this, but it would be nice to at least be able to tag images with an existing profile once I write them / during the encoding process.
This repository has Creative Commons licensed compact ICC profiles we could use:
https://github.com/saucecontrol/Compact-ICC-Profiles
Do you know how much work it would be to add support for at least attaching these profiles to images?
And if you're too busy to work on this, I'd be happy to take a crack at it if you could give me a few pointers.