1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>4. Working with Images</title>
<link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
<link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
<link rel="start" href="index.html" title=" " />
<link rel="up" href="ch02.html" title="Chapter 2. Using Gimp" />
<link rel="prev" href="ch02s03s05.html" title="3.5. Basic Gimp Concepts" />
<link rel="next" href="ch02s04s02.html" title="4.2. QuickMask" />
</head>
<body>
<div xmlns="" class="navheader">
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center" id="chaptername">4. Working with Images</th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="ch02s03s05.html">Prev</a> </td>
<th width="60%" align="center" id="sectionname">4. Working with Images</th>
<td width="20%" align="right"> <a accesskey="n" href="ch02s04s02.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="gimp-using-images"></a>4. Working with Images</h2>
</div>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="id3307365"></a>4.1. Image types</h3>
</div>
</div>
</div>
<p>
It is tempting to think of an <span class="emphasis"><em>image</em></span> as
something that corresponds a single display window, or to a single
file such as a <a href="go01.html#file-jpeg-load">JPEG</a> file,
but really a Gimp image is a rather complicated structure,
containing a stack of layers plus several other types of objects:
a selection mask, a set of channels, a set of paths, an "undo"
history, etc. In this section we are going to take a detailed
look at all of the components of an image, and the things you can
do with them.
</p>
<p>
The most basic property of an image is its
<span class="emphasis"><em>mode</em></span>. There are three possible modes: RGB,
grayscale, and indexed. RGB stands
for Red-Green-Blue, and indicates that each point in the image
is represented by a "red" level, a "green" level, and a "blue"
level. Because every humanly distinguishable color can be
represented as a combination of red, green, and blue, RGB images
are full-color. Each color channel has 256 possible intensity
levels. More details in <a href="go01.html#glossary-colormodel">
Color Models</a>
</p>
<p>
In a grayscale image, each point is represented by a brightness
value, ranging from 0 (black) to 255 (white), with intermediate
values representing different levels of gray.
</p>
<p>
Essentially the difference between a grayscale image and an RGB
image is the number of "color channels": a grayscale image has
one; an RGB image has three. An RGB image can be thought of as
three superimposed grayscale images, one colored red, one green,
and one blue.
</p>
<p>
Actually, both RGB and grayscale images have one additional
color channel, called the <span class="emphasis"><em>alpha</em></span> channel,
representing opacity. When the alpha value at a given location
in a given layer is zero, the layer is completely transparent,
and the color at that location is determined by what lies
underneath. When alpha is maximal, the layer is opaque, and the
color is determined by the color of the layer. Intermediate
alpha values correspond to varying degrees of translucency: the
color at the location is a proportionl mixture of color from the
layer and color from underneath.
</p>
<p>
In Gimp, every color channel, including the alpha channel, has a
range of possible values from 0 to 255; in computing
terminology, a depth of 8 bits. Some digital cameras can
produce image files with a depth of 16 bits per color channel.
Gimp cannot load such a file without losing resolution. In most
cases the effects are too subtle to be detected by the human
eye, but in some cases, mainly where there are large areas with
slowly varying color gradients, the difference may be
perceptible.
</p>
<p>
The third type, <span class="emphasis"><em>indexed</em></span> images, is a bit
more complicated to understand. In an
indexed image, only a limited set of discrete colors are used,
usually 256 or less. These colors form the "colormap" of the
image, and each point in the image is assigned a color from the
colormap. Indexed images have the advantage that they can be
represented inside a computer in a way that consumes relatively
little memory, and back in the dark ages (say, ten years ago),
they were very commmonly used. As time goes on, they are used
less and less, but they are still important enough to be worth
supporting in Gimp. (Also, there are a few important kinds of
image manipulation that are easier to implement with indexed
images than with continuous-color RGB images.)
</p>
<p>
Some very commonly used types of files (including <a href="go01.html#file-gif-load">GIF</a>) produce
indexed images when they are opened in Gimp. Many of Gimp's
tools don't work very well on indexed images–and many filters
don't work at all–because of the limited number of colors
available. Because of this, it is usually best to convert an
image to RGB mode before working on it. If necessary, you can
convert it back to indexed mode when you are ready of save it
</p>
<p>
Gimp makes it easy to convert from one image type to another,
using the <a href="ch05s06s02.html" title="6.2. Mode">Mode</a> command in
the Image menu. Some types of conversions, of course (RGB to
grayscale or indexed, for example) lose information that cannot
be regained by converting back in the other direction.
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25">
<img alt="[Note]" src="../images/note.png" />
</td>
<th align="left">Note</th>
</tr>
<tr>
<td colspan="2" align="left" valign="top">
<p>
If you are trying to use a filter on an image, and it appears
grayed out in the menu, usually the cause is that the image (or,
more specifically, the layer) you are working on is the wrong
type. Many filters can't be used on indexed images. Some can
be used only on RGB images, or only on grayscale images. Some
also require the presence or absence of an alpha channel.
Usually the fix is to convert the image to a different type,
most commonly RGB.
</p>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="ch02s03s05.html">Prev</a> </td>
<td width="20%" align="center">
<a accesskey="u" href="ch02.html">Up</a>
</td>
<td width="40%" align="right"> <a accesskey="n" href="ch02s04s02.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">3.5. Basic Gimp Concepts </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> 4.2. QuickMask</td>
</tr>
</table>
</div>
</body>
</html>
|