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

Extract ICC

Is it possible to extract the embedded icc profil and save it on the disk.
Hello,

Sure, for example please read following topic:

Loading and Saving Files with ICC Profiles

Here is the slightly modified code sample from that topic:

Dim bitmap As New Aurigma.GraphicsMill.Bitmap
'Enable color management
bitmap.ColorManagement.ColorManagementEnabled = True

'Load CMYK image with embedded ICC profile from file
bitmap.Load("C:\Horses.jpg")

'bitmap.ColorProfile.FileName contains the path of the temporary file with ICC profile
'Just copy it to permanent place
System.IO.File.Copy(bitmap.ColorProfile.FileName, "c:\ExtractedProfile.ICC")


Aurigma.GraphicsMill.Bitmap bitmap = 
    new Aurigma.GraphicsMill.Bitmap();
//Enable color management
bitmap.ColorManagement.ColorManagementEnabled = true;

//Load CMYK image with embedded ICC profile from file
bitmap.Load(@"C:\Horses.jpg");

//bitmap.ColorProfile.FileName contains the path of the temporary file with ICC profile
//Just copy it to permanent place
System.IO.File.Copy(bitmap.ColorProfile.FileName, @"c:\ExtractedProfile.ICC");
By the way the upcoming version of Graphics Mill for .NET will include the feature to extract color profiles without reading bitmaps into memory.