Gimp Notes
Gimp Notes
Contents
1
1. Image Processing Basics
1
GIMP cannot open RAW images by itself. However, you may use a plugin called UFRaw into GIMP to open
RAW images.
2
1.2.2. Raster image formats used by image editing software
Image processing software can store extra information, such as text and layers, in its own
file format. If you save the image in these formats, you can open your image later and
continue processing.
Extension Software
XCF GIMP
PSD Adobe PhotoShop
UFO PhotoImpact (Corel / Ulead)
PNG Fireworks (Adobe / Marcomedia)
It is possible to open these files with other programs. However, the image may have
subtle differences if other programs are used.
1.3.1. Dimensions
The dimensions of images can be described in its width and height. For example, an
800 × 600 image means it has a width of 800 pixels, and a height of 600 pixels.
To convert the number of pixels into physical units, the dots per inch (DPI) can be
specified for individual images.
The ratio of the width and the height is called the aspect ratio. For example a 800 × 600
photo has an aspect ratio of 4 : 3. If the aspect ratio of a photo is changed in enlargement or
reduction, the image appears deformed and looks ugly.
3
1.3.3. Colour depth
The colour depth, or bit depth, is the number of data bits2 used to represent a pixel.
The colour depth of a digital photo is usually 24 bits, which is having 8 bits in each
channel3. Some image formats, such as BMP and PNG, allow the use an additional 8 bits to
store the alpha channel.4
Grayscale images, having only one channel, usually have a colour depth of 8 bit. Also,
Black and white images have a colour depth of 1 bit.
It is very difficult to select a colour in the RGB Colour Space. Therefore, GIMP also uses
the HSV Colour Space to represent colours. H stands for hue, S stands for saturation
and V stands for value.5
Hue ranges from 0 to 360 (degrees). 0° stands for red, 120° stands for green and 240°
stands for blue.
Other common colour spaces includes HSL, CMYK, Lab and YCbCr.
(Note: you are only required to understand RGB and HSV this year.)
2
A bit is the short form of a binary digit, which has a value of either 0 or 1.
3
Having 8 bits means there are 28 = 256 different levels of each primary colour.
4
The 32-bit pixel with transparency is called RGBA (Red, Green, Blue, Alpha).
5
In Microsoft Windows, a slightly different HSL Colour Space is used, where L stands for lightness.
4
1.3.5. Loseless and lossy compression
To save storage space, compression is used in most image formats, to reduce the actual
amount of storage space needed for images. There are two major kinds of compression.
Loseless compression is a category of compression that the exact original data can be
obtained in the process of decompression. GIF and PNG files employ loseless
compression.
In contrast, lossy compression means that some of the original data is discarded during
compression. In return, the file size of an image with lossy compression is much smaller
than the same image with loseless compression. JPG files employ lossy compression.
Loseless compression is best for hand-drawn graphics, which have large areas of solid
colours. Meanwhile, lossy compression is suitable for photos, because minor losses in
details are not important to the overall quality of the picture.
1.4.1. Layers
1.4.2. Text
In most image editing software, you may insert text into the image and do simple word
processing.
The font used in the text is NOT stored in the image. Therefore, if you copy the files into
another computer, the font used in the text must also be installed in that computer to make the
text display correctly.
5
2. Introduction to GIMP
2.1. Introduction
GIMP6 is a free image editing software. Unlike Adobe PhotoShop and PhotoImpact, you
can download GIMP from the internet and install it in your computer legally without
paying for the program.
The simplest way to install GIMP is download it from PortableApps.com. Its URL is
http://portableapps.com/apps/graphics_pictures/gimp_portable. Alternatively, you can
download the PortableApps.com platform from http://portableapps.com/download.
6
GIMP is the acronym of “GNU Image Manipulation Program”. GNU is the reverse acronym
“GNU’s not Unix”; and Unix is the name of an operating system.
7
When you launch GIMP for the first time, you need to wait for several minutes for the program to
initialize. Subsequent launches will be much faster.
6
2.3. Single window mode
You can use the single window mode by the “Windows” “Single Window Mode”
command. You are recommended to use the single window mode because it is more
user-friendly.
7
3. GIMP Toolbox
8
Transform tools
Other tools
9
4. Basic Skills
Lesson Preparation
Bring three favourite photos which show your full body. It is okay to
have someone else in the same photo, but make sure that you are not
blocked by something else in the photo.
Hint: send yourself an e-mail with these photos.
(The photos will be used in the homework.)
Learning objective
Instructions
1. Open “garden.jpg”.
2. Use the filters below and experiment.
(Undo before trying the next filter, otherwise the effect will stack.)
3. Open the picture “underexposed.jpg” and “overexposed.jpg”, and try to correct the
problems. (Note: some parts of one of the pictures cannot be recovered. Why?)
10
4.2. Compositing
Learning objective
Use the “Scissors Select Tool” to separate an object from the background, and paste it in
other photos.
Instructions
1. Open a scenery photo in GIMP. You may use your own scenery photo, or download
one from the internet. Open another digital photo containing your image.
2. Paste yourself into to a suitable place a scenery photo.
3. Export the final result as “completed.jpg”.
4. Compress both source images (one for the scenery, another for yourself) and also
“completed.jpg” into a .zip file. (There should be a total of 3 images.)
5. Upload the .zip file to eClass.
11
4.3. Layers and Layer groups
Learning objective
Put parts of the image (e.g. those obtained by selection) to layers. Do simple operation on
layers such as duplicate, resize, rotate, etc.
Instructions
12
4.4. Texts
Learning objective
Instructions
13
4.5. Simple effects
Learning objective
Instructions
1. Open “xmascard.jpg”.
2. Type your name into the picture. Set the font to Garamond 72pt.
(Break your name into two or more lines if needed.)
3. Select the text layer. Then select “Filter” “Light and Shadow” “Drop Shadow”
4. Enter 4, 4, 15, black, 60%, allow resizing (i.e. just the defaults).
5. Create a layer group, and then move text and drop shadow into the group.
6. Move the layer group. (Note: Press SHIFT to move the active layer.)
7. Insert “heart3.png”. Add the same drop shadow.
Learning objective
Instructions
1. Open “photo.jpg”.
2. Select the man in the front. (Use the “Scissors Select Tool”.)
3. Adjust the selection if necessary. (Make sure the right bottom corner is selected.)
4. Invert selection.
5. Apply “Desaturate” command. (Shades of grey based on luminosity.)
6. Apply “Levels” command to make the background lighter.
14
Index of photos (and credits)
garden.jpg waterfall.jpg
-
From TH Media Gallery By Roman Stanek (CC BY 2.0)
15
Summary of All Chapters
16