I experienced the same problem with Adobe RGB 98 profiles.
Maybe, you could force the image reader to perform the color conversion
into the standard sRGB colorspace.
Get the reader and the ImageReadParam, and select CS_ sRGB :
...
for (Iterator i = reader.getImageTypes(0); i.hasNext(); ) {
ImageTypeSpecifier type = (ImageTypeSpecifier) i.next();
ColorSpace cs = type.getColorModel().getColorSpace() ;
if ( cs.isCS_sRGB() ) {
param.setDestinationType(type);
break ;
}
// exit if not RGB
if ( cs.getType() != ColorSpace.TYPE_RGB ) break ;
}
...
This works for me.
Emmanuel D.
Julie Szmyd wrote:
I discovered a couple of workarounds:
- Use JAI to read the image. This works fine.
- Remove the profile info using JMagick(http://www.yeo.id.au/jmagick)
before using ImageIO.read(). Details on using JMagick to do this can be
found at: http://www.yeo.id.au/jmagick/fom-serve/cache/28.html.
--Julie
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".