Page 1 of 1
sRGB colorspace and ProPhoto RGB ICC Profile - Which is it?
Posted: 2019-03-15T07:58:47-07:00
by marcel24
Example 11 and 12. How is it possible that the color space is sRGB and the profile is ProPhoto RGB?
Which one is actually used?
Re: sRGB colorspace and ProPhoto RGB ICC Profile - Which is it?
Posted: 2019-03-15T08:12:22-07:00
by snibgo
The %[colorspace] format comes from image metadata that IM creates. This can take values such as sRGB, RGB, Lab, CMYK, HSL and so on. Logically, when there is a profile, this metadata should record that the channels are red/blue/green or whatever, but the actual colorspace (the primaries etc) are defined by the profile.
And that is really what %[colorspace]=sRGB when there is a profile really means.
Most operations in IM (blur, composite etc) are independent of the colorspace -- they are mathematical operations on pixel values, and IM doesn't need to know what colours are represented by those values.
Re: sRGB colorspace and ProPhoto RGB ICC Profile - Which is it?
Posted: 2019-03-15T08:46:31-07:00
by marcel24
So your saying if there's a profile present the colorspace will be ignored?
Re: sRGB colorspace and ProPhoto RGB ICC Profile - Which is it?
Posted: 2019-03-15T08:58:00-07:00
by snibgo
Ignored by what?
As I say, most IM operations ignore any profile, and don't care what the %[colorspace] is. A small number of operations will change the %[colorspace] to sRGB if it isn't already.
IM will copy a profile from input to output. So if you composite a ProPhoto image over an sRGB image, the result will have the profile from the first input, but the result will be wrong -- you should first convert (with "-profile) one image to the same colorspace as the other.