|
Next: 9.7 Which Format GIF Up: 9. Web-Centric GIMP Previous: 9.5 Web-Safe Color |
Semi-transparency presents a particularly knotty problem when converting an image to Indexed format. This is a problem for indexed images because they only support alpha values of 0 (fully transparent) and 255 (fully opaque). When converting to Indexed format, partially transparent pixels (that is, with alpha values in the range 1 to 254) have their alpha values forced to 0 or 255. This is a problem for antialiasing (see Section 3.1.2) and for the general use of transparency in indexed images.
Fortunately, there is a solution. The Semi-Flatten plug-in is a work-around for the problem of semi-transparency in indexed images. This filter, found in the Image:Filters/Colors menu, requires knowing the background color that will be used beneath the semi-transparent image. If you can't determine the background color in advance, the Semi-Flatten filter cannot help you.
To use the Semi-Flatten filter, you must determine the color that will be behind the semi-transparent image and you must specify it in the Active Background Color patch in the Toolbox window. The Color Picker tool can be useful for determining colors, and although the Color Picker automatically sets the Active Foreground Color you can easily toggle this color to the background by clicking on the Switch Colors icon (the two-headed arrow above the foreground/background color patches in the Toolbox). The semi-flattening process combines the Active Background Color with the layer colors in proportion to the layer's alpha values.
As an example, Figure 9.30
|
Next: 9.7 Which Format GIF Up: 9. Web-Centric GIMP Previous: 9.5 Web-Safe Color |