|
|
Rank: Member Groups: Member
Joined: 2/21/2006 Posts: 2 Points: 0
|
Hi i would to ask what is the right way how can i convert CMYK2RGB with correct colors. I know that my original CMYK Jpeg is U.S. WebUncoated color profile (Photoshop information). Can i get this information from file ? I have in my project folders with ICC profiles but i dont know how i can choose right one. For example i do manualy this : Code:
.....
bitmap.Load(@"C:\devel\Mill-Test\Test\coverfriedaCMYK.jpg");
bitmap.ColorProfile = new Aurigma.GraphicsMill.ColorProfile(@"C:\devel\Mill-Test\Test\CMYK Profiles\USWebUncoated.icc");
bitmap.ColorManagement.RgbColorProfile = new Aurigma.GraphicsMill.ColorProfile(@"C:\devel\Mill-Test\Test\RGB Profiles\sRGB Color Space Profile.icm");
bitmap.ColorManagement.ConvertToContinuous(Aurigma.GraphicsMill.ColorSpace.Rgb, false, bitmap.IsExtended);
bitmap.Save(@"C:\devel\Mill-Test\Test\output_rgb.jpg");
It work perfect ... but i need to check color profile from original dynamicaly. Sorry for my bad english i am from Czech repulic :) Thx for help JP
|
|
 Rank: Advanced Member Groups: Administration
, Member
Joined: 8/2/2003 Posts: 709 Points: 108
|
Hi Jirka, As far as I understand, you want to use embedded color profile (which Photoshop saves along with image). If yes, there is no problem. The ColorProfile property is automatically initialized with this profile if you load such file. If you want to verify whether some profile is embedded, just check whether ColorProfile property contain any data. If it contains nothing, you can assign some fallback profile. Hope this helps. Sincerely yours, Andrew Simontsev from Aurigma Team
|
|
Rank: Member Groups: Member
Joined: 2/21/2006 Posts: 2 Points: 0
|
Hi Andrew, i try to check color profile in debug of bitmap object where i load this jpeg but there is i am sure that my image have embedd color profile inside. If i try to get ColorProfile.FileName from this image for example, debug report this error : Quote:Code:An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication1.exe Additional information: Object reference not set to an instance of an object. Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at WindowsApplication1.Form1.Main() in c:\devel\mill-test\form1.cs:line 87 Could you help with some idea what can be wrong? Thanks JP
|
|
 Rank: Advanced Member Groups: Administration
, Member
Joined: 8/2/2003 Posts: 709 Points: 108
|
If ColorProfile is null, it means that Graphics Mill did not read the profile from the file. If you are sure that JPEG file you try to open contains the color profile (e.g. when you load it in Photoshop, you can see it), please submit case ััะตั this JPEG file. Sincerely yours, Andrew Simontsev from Aurigma Team
|
|
|
Guest |