Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Mattias Malm  
#1 Posted : Sunday, May 7, 2006 4:40:29 PM(UTC)
Mattias Malm

Rank: Member

Groups: Member
Joined: 5/4/2006(UTC)
Posts: 17

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:
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]

Edited by user Friday, December 18, 2009 8:32:38 PM(UTC)  | Reason: Not specified

Fedor  
#2 Posted : Monday, May 8, 2006 2:24:10 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hello Mattias,

We are checking the problem and will let you know soon.
Best regards,
Fedor Skvortsov
Dmitry  
#3 Posted : Tuesday, May 9, 2006 6:24:26 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

Could you upload archive with color profiles once again? It seems the current file is corrupted.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Guest
Similar Topics
Strange Color Management problem (Discussions – Graphics Mill)
by Syphos 9/27/2007 1:53:01 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.