Quote:
|
Originally Posted by praveenbr If i have a jpeg, how can i identify if it is a RGB or CMYK? Is there any tool available which determines it? |
Jpegs don't encode in CMYK (or RGB for that matter). The internal color space of a jpeg is called YCbCr, this is the same color space used by PAL television transmission. YCbCr values are typically converted to RGB values by the application when read into the program but they could be converted to CMYK just as well. But, that's not standard practice.
What tells the application program what to use is in the image metadata or an embedded profile. Exif has an sRGB/something else indicator and iptc can have a (usually proprietary) color space field. Adobe has embedded XMP data that specifies the color space mode and profile. If you are trying to write a program to process files from arbitrary sources, good luck. It's like nailing jelly to a tree.
You can use google to track down the various pieces of the puzzle.