First, I would like to say I'm not an image processing specialist.
I would like to convert image colorspace from one to another, and change icc color profile at the same time. I managed to do it using JMagick (the ImageMagick Java port), but no way in pure Java (even using JAI).
Use
ColorConvertOp
, this will do the color space conversion. You have several options to set a icc color profile. Either you use a predefined profile by usinggetInstance
with the correct color space constant or you can specify a file, which contains a profile. Here is an example:The
result
will contain an image with thesRGB
color space.