Rank: Newbie
Groups: Guest
Joined: 4/12/2011(UTC) Posts: 3
Thanks: 1 times
|
Hi, I've been using the following link to try and convert images from CMYK to RGB to be shown in a web browser but am having problems with images being too bright. http://www.aurigma.com/d...ththeColorManagement.htmThe code we've written is as follows: Code:
'Choose LittleCMS color management engine
img.ColorManagement.ColorManagementEngine = Aurigma.GraphicsMill.Transforms.ColorManagementEngine.LittleCms
'Assign output RGB profile for conversion
img.ColorManagement.RgbColorProfile = Aurigma.GraphicsMill.ColorProfile.FromSrgb
img.colormanagement.TransformationIntent = ColorTransformationIntent.Perceptual
'Convert to RGB
img.ColorManagement.ConvertToContinuous(Aurigma.GraphicsMill.ColorSpace.Rgb, False, img.IsExtended)
Yet when the image is saved the colours are much too bright. The attached file shows the original on the left and the converted image on the right. Any ideas on what we're doing wrong? I've tried several different TransformationIntent options but the result is the same. Thanks JamesL attached the following image(s):
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 9/19/2006(UTC) Posts: 505
Was thanked: 41 time(s) in 41 post(s)
|
Hi James,
Could you post here your source image? |
Best regards, Eugene Kosmin The Aurigma Development Team
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 4/12/2011(UTC) Posts: 3
Thanks: 1 times
|
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
James, Your image doesn't contain an embedded color profile. So, actually color management is not applied while color conversion is being made and you get wrong colors. Prior to calling img.ColorManagement.ConvertToContinuous you should do the following: Code:
if (img.ColorProfile == null)
img.ColorProfile = new ColorProfile(pathToCmykProfile);
pathToCmykProfile - file path to a predefined CMYK profile. Edited by user Thursday, May 16, 2013 8:46:18 AM(UTC)
| Reason: Not specified |
|
1 user thanked Dmitry for this useful post.
|
|
|
Rank: Newbie
Groups: Guest
Joined: 4/12/2011(UTC) Posts: 3
Thanks: 1 times
|
Hi Dmitry, that's sorted it!
Thanks for the quick response from yourself and Eugene.
James
|
|
|
|
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.