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

Notification

Icon
Error

Options
Go to last post Go to first unread
JamesL  
#1 Posted : Wednesday, May 15, 2013 8:10:00 AM(UTC)
JamesL

Rank: Newbie

Groups: Member
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.htm

The 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):
Capture.JPG
Eugene Kosmin  
#2 Posted : Wednesday, May 15, 2013 6:24:54 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 439

Was thanked: 22 time(s) in 22 post(s)
Hi James,

Could you post here your source image?
Best regards,
Eugene Kosmin.
Aurigma Development Team
JamesL  
#3 Posted : Thursday, May 16, 2013 1:02:27 AM(UTC)
JamesL

Rank: Newbie

Groups: Member
Joined: 4/12/2011(UTC)
Posts: 3

Thanks: 1 times
Hi Eugene, sure thing. It's a 70mb file so I'm not sure the forum will accept it as an upload so I've put it on the following URL:

http://www.rinaandjames....es%20to%20the%20City.tif

Many thanks
James
Dmitry  
#4 Posted : Thursday, May 16, 2013 8:19:00 AM(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)
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

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
thanks 1 user thanked Dmitry for this useful post.
JamesL on 5/16/2013(UTC)
JamesL  
#5 Posted : Thursday, May 16, 2013 8:30:25 AM(UTC)
JamesL

Rank: Newbie

Groups: Member
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
Users browsing this topic
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.