colorspace (s)RGB and chromaticity primaries
Posted: 2016-10-22T05:50:32-07:00
I'm creating a png from raw RGB bytes that should be interpreted with Adobe RGB primaries (not sRGB) with something like
convert -size 2048x1536 -depth 8 rgb:inputfile -depth 10 outputfile.png
identify -verbose then says
Colorspace: sRGB
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
So I add the Adobe RGB profile
convert -size 2048x1536 -depth 8 rgb:inputfile -depth 10 -set profile "/usr/share/color/icc/Adobe ICC Profiles/RGB Profiles/AdobeRGB1998.icc" outputfile.png
identify -verbose then still reports Colorspace: sRGB
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
and Profiles:
Profile-icc: 560 bytes
No matter what I do (-colorspace RGB -set colorspace RGB for input and/or output) the output file always has colorspace sRGB and no Adobe RGB green primary according to identify. Apparently -set colorspace only triggers changes from linear to gamma corrected data and back. The profile alone will make sure the printer driver knows the data is relative to Adobe RGB primaries and not sRGB primaries? When ever will colorspace say RGB and a green Adobe RGB primary is listed by identify?
convert -size 2048x1536 -depth 8 rgb:inputfile -depth 10 outputfile.png
identify -verbose then says
Colorspace: sRGB
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
So I add the Adobe RGB profile
convert -size 2048x1536 -depth 8 rgb:inputfile -depth 10 -set profile "/usr/share/color/icc/Adobe ICC Profiles/RGB Profiles/AdobeRGB1998.icc" outputfile.png
identify -verbose then still reports Colorspace: sRGB
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
and Profiles:
Profile-icc: 560 bytes
No matter what I do (-colorspace RGB -set colorspace RGB for input and/or output) the output file always has colorspace sRGB and no Adobe RGB green primary according to identify. Apparently -set colorspace only triggers changes from linear to gamma corrected data and back. The profile alone will make sure the printer driver knows the data is relative to Adobe RGB primaries and not sRGB primaries? When ever will colorspace say RGB and a green Adobe RGB primary is listed by identify?