A SERVICE OF

logo

184 Appendix B
mapped to the same color on the destination device. This intent is useful when it is known
that the colors in the image mainly lie inside the gamut of both the source and the
destination device.
Absolute Colorimetric
This intent is used when you want the colors on the destination device to be
colorimetrically equal to that on the source device. No white point mapping is done. This
intent is rarely used for image processing.
Saturation
For certain types of images (notably business graphics), it is more important to preserve the
saturation of the color than the color itself. The saturation intent is provided to handle this
case.
MediaScript Color Management Functions
The color management functions provided by MediaScript can be divided into two
categories:
image conversion
profile management.
The image conversion functions are all members of the Media object, while the profile
management functions are provided by the IccProfile object. A brief overview of these
functions is provided here.
Image Conversion Methods
The image conversion methods are all member functions of the Media object.
The colorCorrect method is the primary method used for converting between a
source device, represented by the source profile, and a destination device represented
by the destination profile.
The colorToImage method provides a mechanism for converting a single color from
a specified source to the image colorspace.
The colorFromImage method converts a single color from the image colorspace to a
specified destination.
The embeddedProfile method tests an image to see if it has an embedded profile.
The getEmbeddedProfileName method returns the name of the embedded profile.
The saveEmbeddedProfile method will save the embedded profile to a file.
The setSourceProfile method sets the embedded profile for an image to the
specified profile.
For specific details of these functions see “Media Object” on page 43.