The Curves tool is the most sophisticated tool for changing the color, brightness, contrast or transparency of the active layer or a selection. While the Levels tool allows you to work on Shadows and Highlights, the Curves tool allows you to work on any tonal range. It works on RGB images.
You can get to this tools in several ways :
In the image menu through
→ → or → .By clicking on the tool icon in Toolbox, if this tool has been installed there (see Tools dialog.
There are five options:
The curve represents the Value, i.e the brightness of pixels as you can see them in the composite image.
The curve represents the quantity of color in each of the three RGB channels. Here, dark means little of the color. Light means a lot of the color.
The curve represents the opacity of the pixels. Dark means very transparent. Light means very opaque. Your image must have an Alpha channel for this option to be enabled.
This button deletes all changes made to the selected channel and returns to default values.
These buttons allow to choose the Linear or Logarithmic type of the histogram. You can also use the same options in Tool Options dialog.
The vertical gradient: it represents the the destination, the output tonal scale. It ranges from 0 (black) to 255 (white), from Shadows to Highlights.
The horizontal gradient: it represents the input tonal scale. It, too, ranges from 0 (black) to 255 (white), from Shadows to Highlights. When you adjust the curve, it splits up into two parts; the upper part then represents the tonal balance of the layer or selection.
The chart: the curve is drawn on a grid and goes from the bottom left corner to the top right corner. The pointer x/y position is permanently displayed in the top left part of the grid. By default, this curve is straight, because every input level corresponds to the same ouput tone. GIMP automatically places an anchor at both ends of the curve, for black (0) and white (255).
If you click on the curve, a new anchor is created. When the mouse pointer goes over an anchor, it takes the form of the moving crosshair. You can click-and-drag the anchor to bend the curve. If you click outside of the curve, an anchor is also created, and the curve includes it automatically.
Unactive anchors are black. The active anchor is white. You can activate an anchor by clicking on it. You can also swap the anchor activation by using the Left and Right arrow keys of your keyboard. You can move the anchor vertically with the Up and Down arrow keys. This allows you to fine tune the anchor position. Holding the Shift down lets you move it by increments of 15 pixels.
Two anchors define a curve segment which represents a tonal range in the layer. You can click-and-drag this segment (this creates a new anchor). Of course, you can't drag it beyond the end anchors.
To delete all anchors (apart from both ends), click on the Reset Channel button. To delete only one anchor, move it onto another point or to the grid border.
Meanwhile, on the canvas, the mouse pointer has the form of an eye-dropper. If you click on a pixel, a vertical line appears on the chart, positioned to the source value of this pixel in the selected channel. If you Shift-click, you create an anchor in the selected channel. If you Ctrl-click, you create an anchor in all channels, possibly including the Alpha channel. You can also Shift-drag and Ctrl-drag: this will move the vertical line and the anchor will show up when releasing the mouse left button.
The histogram of the active layer or selection for the selected channel is represented grayed out in the chart. It's only a reference. -->
Open: This button allows you to select a file holding curve settings.
Save: Allows you to save any curves you have set to a file that can be loaded later.
Smooth: This mode constrains the curve type to a smooth line with tension. It provides a more realistic render than the following.
Free: With GIMP-v2.4, you are not totally free to draw the curve. You actually draw a broken line that you can smooth by clicking the button.
The Preview button makes all changes to the levels dynamically so that the new level settings can be viewed immediately.
Tool Options dialog
Although this tool is not present in Tool box, nevertheless it has a Tool Option Dialog under the Toolbox. These options are described here:
These two options have the same action as the logarithmic and Linear buttons in the Curves dialog.
This slider sets the “radius” of the color-picking area. This area appears as a more or less enlarged square when you maintain the click on a pixel. Here, the eye-dropper is used to locate a pixel: radius = 1 seems the best.
We create anchors and segments on the curve and we move them to shape the curve. This curve maps “input” tones of the active layer or selection to “output” tones.