I am working on applet to read, resize and upload images. i am able to do all this using JAI but there is one more condition that needs to be full filled by my program i.e. to check the color profile of image before uploading (such as sRGB, Adobe RGB 1998).
I tried getType it give me the int number for diffrent color profile but it is not able to differentiate between sRGB and adobe RGB 1998 colour profile. How to get the colour profile embeded in the image.
Yes, but its a profile (rendering and editing data calibration) for imaging not any particular java image(in crude terms at this point) [http://www.adobe.com/digitalimag/adobergb.html|http://www.adobe.com/digitalimag/adobergb.html]
If you want the maths for the image data profile [http://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf|http://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf]
presumably you were returning int getType() from a BufferedImage , the adobe profile image data is 24 bit true colour and heavily implied to be related to imaging data from "capture devices" which then implies from no mention in their documentation of "alpha component" , so in java any 24 bit non-indexed colour model RGB alike the windows bit map as the getType() "constant field value" int would be acceptable pending and other colour model excluded for render purpose of true colour(read BufferedImage API pages' "constant field values" for image type).