Solid colors
Color values specified with color=
, bgcolor=
, or the RTF command \iscolortbl
are associated with the input color space if the color value includes the suffix ‘S’, otherwise they are associated with the output color space. Color values specified with bgc=
or the RTF commands \colortbl
and \cmykcolortbl
are always associated with the corresponding default or actual output color space.
bgc=
does not fully participate in color management-the ‘S’ suffix is ignored when specified with bgc=
, and naïve conversion is applied when the pixel type of the color value specified with bgc=
differs from the pixel type of the output image. Otherwise, bgc=
is associated with the actual output color space.Nested and embedded requests
The output color space for nested IS requests and embedded IR requests is automatically set to the output color space of the outermost request, unless the nested request specifies an explicit output color space with icc=
. In addition, nested/embedded requests also inherit the default output color spaces from the main catalog of the outermost request, to ensure consistent handling of solid color values.
Color space conversion
Image Serving generally attempts to delay color conversions during processing. If all layers of an image have the same layer color space, conversion to the output color space is done after merging and final scaling. If multiple layer color spaces are involved, each layer is transformed to the output color space prior to merging.
op_brightness=
, op_colorbalance=
, op_colorize=
, op_contrast=
, op_hue=
, and op_saturation=
are RGB operations. These operations maintain color fidelity only if the layer color space has RGB pixel type. If other than RGB, the data is converted to RGB using naïve color conversion, and the result has limited color fidelity. The layer color space for such layers should be considered indeterminate.Color conversion options are provided with icc=
or, if icc=
is not specified, with attribute::IccRenderIntent
, attribute::IccBlackPointCompensation
, and attribute::IccDither
.