i use jmagic to resize user-uploaded images on a web page.
Here i have some image, which are not be able to show correctly in firefox.
For them i tried to do a conversion, but i can't get it working. I even try some icc color profiles.
Maybe someone have an idea a) how to detect such images and b) how to convert it correctly.
Here one of the images:
http://www.imgbox.de/show/img/LcdFDmdNdT.jpg
> the colors are wrong in firefox, ie handle it fin, my image viewer (irfanview) also.
Code looks similar to: (i try all adobe icc profiles, because i expected one of them, but no success):
Code: Select all
...
ImageInfo origInfo = new ImageInfo(); //load image info
MagickImage image = new MagickImage(origInfo, data); //load image
image.setColorProfile(new ProfileInfo(filename, iccProfile));
image.rgbTransformImage(ColorspaceType.RGBColorspace);
...