A SERVICE OF

logo

MediaRich Color Management 187
Because of the inherent inaccuracy in the color conversion process, converting from one
colorspace to another and back should also be avoided where possible. Images for
processing should be converted to a common colorspace, processed, and converted to the
destination. Choice of the common colorspace depends on the colorspace of the images
involved, the type of images involved, the quality of the color profiles, the destination
colorspace, and the operations to be performed.
Common Color Management Questions
How do I color correct RGB images that do not have embedded
profiles?
Specify a source profile to the colorCorrect function. This source profile will only be
used for images that do not have an embedded source profile. If you specify the string
“rgb” as the source profile for colorCorrect, the default RGB profile specified in the
global.properties file will be used for any image that lacks a source profile.
image.colorCorrect(SourceProfile @ "rgb",
DestProfile @ myPrinterProfile, Intent @ "RelativeColorimetric");
How do I composite an RGB image on to an CMYK image?
You must first convert the RGB image to the CMYK colorspace of the image. The simplest
method for performing this conversion is to construct an IccProfile object from the CMYK
image. This IccProfile object may then be used as the destination profile for the conversion.
For example, suppose that the CMYK image is contained in a Media object named
cmykImage, and the RGB image is contained in a Media object named rgbImage. The
following script will perform the composite:
cmykProfile = new IccProfile(cmykImage);
rgbImage.colorCorrect(SourceProfile @ "rgb",
DestProfile @ cmykProfile, Intent @ "Perceptual");
cmykImage.composite(source @ rgbImage);
NOTE: The new IccProfile(cmykImage) method will throw an exception if cmykImage does
not contain an embedded profile.
When I try to construct an IccProfile object, I get the “Not a
function type” error. What’s wrong?
The IccProfile object is a MediaScript link object. To use the IccProfile object when
MediaRich is installed on a Windows server, type the following line at the beginning of
your script.
#link <IccProfile.dll>