How to get jpeg / tiff color space in java?

The title sums it up. Using the standalone exiftool program to delete all image metadata on the console, I see the line Color space data: RGB It looks like this is taken from the ICC header

I want to get the same data programmatically in java. I tried the drew noakes library and the Sanselan library but did not give me the RGB value for any field.

+4
source share
1 answer

You have a BufferedImage , right? If so, you'll probably want either getType () or getColorModel () (then getColorSpace () or. toString() ). You can check getType () for various types defined in BufferedImage .

+5
source

All Articles