The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » JAI

Thread: Making Images to ICC v4 compatible

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Jun 9, 2008 3:57 AM by: mthornton Threads: [ Previous | Next ]
shashwat_anand

Posts: 5
Making Images to ICC v4 compatible
Posted: Jun 4, 2008 5:59 AM
 
  Click to reply to this thread Reply

Hello Everybody

Can anyone tell me.

How I can do Color Management to an Image in Java?
How I can set the ICC Version 4 for the images?
Color Management is working in Safari Browser and few other web browsers?
I am using JDK 1.5.

Shashwat

bpb

Posts: 499
Re: Making Images to ICC v4 compatible
Posted: Jun 4, 2008 9:28 PM   in response to: shashwat_anand
 
  Click to reply to this thread Reply

Hi. This seems rather to be a "shotgun" question, i.e., one with quite a dispersed scatter pattern. Would you mind narrowing it down a little?

Thanks!

Brian

> Hello Everybody
>
> Can anyone tell me.
>
> How I can do Color Management to an Image in Java?
> How I can set the ICC Version 4 for the images?
> Color Management is working in Safari Browser and few
> other web browsers?
> I am using JDK 1.5.
>
> Shashwat

shashwat_anand

Posts: 5
Re: Making Images to ICC v4 compatible
Posted: Jun 5, 2008 9:48 PM   in response to: bpb
 
  Click to reply to this thread Reply

Hi Brian

We have built an application in Java that displays a lot of photos taken by AP Journalists. These photos contain ICC profiles, and when using an a web browser that recognizes ICC profiles, the photos are displayed with the proper color-managed profile. Firefox 3 and Safari are color managed browsers that display these profiles. Users of the application in Java would like to view these color profiles in Java as well. I am able to fine the ICC color profile in Java and apply it but not able to see any difference. This is a good link to check color profiles http://www.color.org/version4html.xalter and https://bugzilla.mozilla.org/show_bug.cgi?id=16769

If I use JDK 6 and use
BufferedImage image = ImageIO.read(new URL("https://bugzilla.mozilla.org/attachment.cgi?id=245837"));
to retrieve the image then I am getting the correct output(same as if I view the url in safari web browser).
But not in JDK 5.

Thanks
Shashwat

Message was edited by: shashwat_anand

mthornton

Posts: 528
Re: Making Images to ICC v4 compatible
Posted: Jun 9, 2008 3:57 AM   in response to: shashwat_anand
 
  Click to reply to this thread Reply

You could try the JAI imageio tools instead of those included in the JRE.

https://jai-imageio.dev.java.net/binary-builds.html




 XML java.net RSS