This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Converting from CMYK2RGB with correct color profile

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 :
.....
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");
		
//Convert to RGB
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
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.
Hi Andrew,
i try to check color profile in debug of bitmap object where i load this jpeg but there is
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.