Repository navigation
Convert image to sRGB color profile #1294
|
How can I take an input image, for which I don't know the ICC profile in advance, and save it using an sRGB profile? |
Answered by
JimBobSquarePants
Jul 30, 2020
Replies: 1 comment
|
Assuming you mean jpeg, we always convert the colorspace to an rgb compatible colorspace which makes no assumption on the profile and is treated as sRGB. However, and this is a big however. The conversion is done without ICC hints so Cmyk or YccKjpegs can often turn out incorrectly. We need someone to step up and complete this PR in order to apply accurate conversions. Once complete, each image format that supports ICC will have to have support added incrementally. |
0 replies
Answer selected by
leboeuf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming you mean jpeg, we always convert the colorspace to an rgb compatible colorspace which makes no assumption on the profile and is treated as sRGB.
However, and this is a big however. The conversion is done without ICC hints so Cmyk or YccKjpegs can often turn out incorrectly. We need someone to step up and complete this PR in order to apply accurate conversions.
#273
Once complete, each image format that supports ICC will have to have support added incrementally.