• Post Reply Bookmark Topic Watch Topic
  • New Topic

converting Image ICC Profiles  RSS feed

 
Chris Novalis
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone
I am trying to convert an image from one ICC profile to another. I have searched the internet, but the only answer I could find doesn't really work.

The source profile should be the embedded profile if possible, the destination profile is a profile stored on the computer for a photographic imager.

I have tried this, but the computer hangs and the program seems to crash.



canvas is an image object that is created earlier in the program.

Both profiles are RGB, the image does not need converting to CMYK.
[ December 20, 2008: Message edited by: Chris Novalis ]
 
Chris Novalis
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry everyone for wasting your time, I have been testing the program some more and have found that the hanging is not happening during colour conversion. It is happening when I try to display the image after colour conversion.

The code below has the problem.



If I take out the line

g2.drawImage(canvas, 0, 0, 428, 600,0,0,300*10,300*14, null);

then the program works, I just cannot see the image on screen. I can write the image to a file without the program hanging, which is all I need to do.

Just as a matter of interest, does anyone know why this is happening?

This problem does not occur if I do not do the ICC Profile conversion.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!