On Saturday 31 March 2007 17:24, Chris Mohler wrote: > Hi, > > I'm working on bug #316618: > http://bugzilla.gnome.org/show_bug.cgi?id=316618 > > I was cruising along until I found that Photoshop palettes have many > CMYK data. What's the best method of converting these colors to RGB > and getting reasonably close? > > I tried the functions here: > http://developer.gimp.org/api/2.0/libgimpcolor/libgimpcolor-GimpColorSpace. >html > > But they aren't working very well - is there a better method? > > Thanks, > Chris You might consider using a color transform using ICC profiles. For example you could use sRGB as your generic destination color space and perhaps a SWAP profile for the CMYK side. Once you have selected your two profiles doing the conversion is almost trivial using calls to lcms. Hal _______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer