12.11. Stencil Chrome

12.11.1. Overview

图 17.274. Example for the Stencil Chrome filter

Example for the “Stencil Chrome” filter

Original image

Example for the “Stencil Chrome” filter

Stencil Chrome applied


This filter provides a chrome effect. The source image must be an image containing a single layer. This layer is used as mask (stencil) for the chrome effect.

The filter creates a new image with the chrome effect applied to the source image or, if a selection exists, to the selection of the source image (a nice background is added too). If no environment map image is specified, a copy of the source image will be used.

12.11.2. Activating the Filter

This filter is found in the main menu under FiltersDecorStencil Chrome….

12.11.3. Options

图 17.275. Stencil Chrome options

“Stencil Chrome” options

Chrome saturation, Chrome lightness

Use this option to control how saturation and lightness of the Chrome layer are adjusted. Negative values decrease saturation and lightness respectively.

Chrome factor

This factor lets you adjust offsets, feather radius, and brush size used to construct the Chrome and Highlight layer (and the Drop Shadow as well).

Change with caution, decreasing this value may make the chrome effect worse. The default factor 0.75 seems to be a good choice.

Environment map

The environment map is an image that is added as some kind of noise to the source. If no image is selected here, the source image will be used.

The effect is best to see if you use a simple map with some obvious shapes:

Using a simple environment map

The size of the environment map image doesn't matter, it is scaled to the size of the source image.

Highlight balance

This color is used to modify the color balance of the Highlight layer: the amount of red, green, and blue colors is increased according to the corresponding values of the specified option.

Avoid colors with red, green or blue value > 230.

Chrome balance

Same as above, but modifies the color balance of the Chrome layer.

Chrome white areas

If checked (this is the default), the source image is used as mask. If unchecked, the inverted source image is used.

12.11.4. How to create the chrome effect

The following section provides a brief and simplified description of how the script (actually this filter is a Script-Fu) creates the chrome effect.

If you apply the filter to your source images and then look at the Layers Dialog of the resulting image, you will see that there are two main layers which make up the chrome effect: the Chrome layer and the Highlight layer. These layers are created as follows:

  1. The script constructs a somewhat simplified and blurred layer from the source image (from the inverted source image if Chrome white areas is unchecked).

    The Chrome factor controls the appearance of this layer.

  2. The (scaled) environment map is blurred and merged into the above layer with 50% opacity. (Do you spot the cat in the introducing example?)

    Merging the environment map

  3. The brightness (value) of the layer is modified according to a spline-based intensity curve.

    Modifying the intensity curve

  4. A layer mask is added, initialized with the source image (the Chrome Stencil). This is the Chrome layer before the final step.

    The Highlight layer is a copy of the Chrome layer where the layer mask is stroked with a white brush.

    Chrome and Highlight base

  5. For both layers the color balance is modified (according to Highlight balance and Chrome balance), increasing the amount of red, green, and blue, with emphasis on highlights.

    Additionally, saturation and lightness of the Chrome layer are modified (controlled by Chrome saturation and Chrome lightness).

    Chrome and Highlight layer

Now add a drop shadow and a background layer and you get the Example image for the Stencil Chrome filter.