Thank you for the reply.
I did the same but when I load the image in another test application using the same code and tried to get the profile it returned null. Following is the code of the test application
I did the same but when I load the image in another test application using the same code and tried to get the profile it returned null. Following is the code of the test application
try
{
using (MagickImage image = new MagickImage(openFileDialog1.FileName))
{
ColorProfile profile = image.GetColorProfile();
if (profile != null)
{
MessageBox.Show(profile.Name);
}
}
}
catch (Exception ex)
{
MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
}