3 Replies Latest reply: Nov 3, 2011 1:02 AM by Maxideon RSS

    Problem in Finding Color Profile of an image?

    880601
      Hi All,

      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.

      Thanks
      Rohit.
        • 1. Re: Problem in Finding Color Profile of an image?
          880601
          Hi All,

          Has no one faced this problem. This is very important for my project any help would be highly appreciated.

          Thanks,
          Rohit Kapoor
          • 2. Re: Problem in Finding Color Profile of an image?
            896874
            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).
            • 3. Re: Problem in Finding Color Profile of an image?
              Maxideon
              The color profile is embeded in the ColorSpace, which is embeded in the ColorModel, which is embeded in a BufferedImage.
              ((ICC_ColorSpace) img.getColorModel().getColorSpace()).getProfile()