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

Color management problem

I need to prepare images for news paper publishing, but have a problem when when using Graphics Mill to convert RGB to grayscale with color management turned on (RGB -> CMYK works perfectly). When using Photoshop to convert RGB (Adobe RGB 1998) to grayscale (ISOnewspaper26v4_gr or fargpressen_v3_grey) the image looks the way it should. Using Graphics Mill to do the same thing gives me a very dark image (see attachment).

Is there a problem with my code, the ICM files or Graphics Mill itself? Any suggestions or solutions would be greatly appreciated.

My code:
// Open image
Bitmap gmTest = new Bitmap(Server.MapPath("/bmc.tmp/Stones.jpg"));

// Turn color management on
gmTest.ColorManagement.ColorManagementEnabled = true;

// Set image ICC profile if it's not embedded
if (gmTest.ColorProfile == null && gmTest.IsRgb)
	gmTest.ColorProfile = new ColorProfile(Server.MapPath("/bmc.dat/tr3/ColorProfiles/sRGB IEC61966-21.icm"));

// Set destination ICC profile
gmTest.ColorManagement.GrayScaleColorProfile = new ColorProfile(Server.MapPath("/bmc.dat/tr3/ColorProfiles/ISOnewspaper26v4_gr.icm"));

// Set transformation intent
gmTest.ColorManagement.TransformationIntent = Aurigma.GraphicsMill.Transforms.ColorTransformationIntent.Perceptual;

// Convert and save
gmTest.ColorManagement.ConvertToContinuous(ColorSpace.GrayScale, false, false);
gmTest.Save(Server.MapPath("/bmc.tmp/Gray.jpg"), new JpegEncoderOptions(90, false));

// Clean up
gmTest.Dispose();


Thanks
Mattias Malm

Edit: There was a problem with the attachements, so here is an external link to the files used:

[URL was removed]

[Image was removed]
Hello Mattias,

We are checking the problem and will let you know soon.
Hello,

Could you upload archive with color profiles once again? It seems the current file is corrupted.