Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] GraphicsMagick & LCMS2 (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] Free tickets for young developers for MBS Xojo Conference 2016 in Koblenz, Germany
Next thread: [MBS] Equilibration of photographs


[MBS] CURL MissingFUnctionExcpetion   -   Garth Hjelte
  [MBS] GraphicsMagick & LCMS2   -   Lee Badham
   Re: [MBS] GraphicsMagick & LCMS2   -   Christian Schmitz

[MBS] GraphicsMagick & LCMS2
Date: 15.01.16 16:53 (Fri, 15 Jan 2016 15:53:30 +0000)
From: Lee Badham
Hi,

I'm in the process of migrating from ImageMagick to GraphicsMagick and am looking at using colour conversions using profiles and LCMS2

If I convert a CMYK embedded image to Lab I actually get a corrupted RGB image.

image.RenderingIntent//absolute
image.iccColorProfile = new GMBlobMBS(lp.SaveProfileToString)
#if DebugBuild
dim ProfileBlob as GMBlobMBS = Image.iccColorProfile
dim ProfileData as string = ProfileBlob.CopyString
dim cm as LCMS2ProfileMBS = LCMS2ProfileMBS.OpenProfileFromString(ProfileData)
dim name as string = cm.Name

image.write(SpecialFolder.Desktop.Child("calculate_preview_lab.tif"))
#endifLABColorspace

If I convert directly to RGB from CMYK I get an acceptable (but not colour accurate enough) result.

In the readme I see that:

LABColorspace = 14 (LAB colorspace not supported yet other than via lcms)

What does this mean?

Regards,

Lee Badham

Bodoni Systems Ltd


_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] GraphicsMagick & LCMS2
Date: 15.01.16 17:18 (Fri, 15 Jan 2016 17:18:13 +0100)
From: Christian Schmitz

> Am 15.01.2016 um 16:53 schrieb Lee Badham <<email address removed>>:
>
> Hi,
>
> I'm in the process of migrating from ImageMagick to GraphicsMagick and am looking at using colour conversions using profiles and LCMS2
> If I convert a CMYK embedded image to Lab I actually get a corrupted RGB image.

I fear you write out a RGB file with a CMYK profile.

But I think we do have examples for converting images from one color space to other without graphicsmagick.

Sincerely
Christian