|
carol.gimp.orgGIMP BasicsLite Quickies |
You have TheGIMP installed on your computer and need to make a simple change to an image. This tutorial was written to help people brand new to image manipulation use TheGIMP to make those simple changes to images. The same information could also be useful to you if you are used to a different application and need to see how TheGIMP does these things. The goal is to step you through some basic and often necessary tasks and help you to make friends with TheGIMP and even prepare you for more complex tasks.
Everyone who uses TheGIMP was once new to it. The first time I started TheGIMP up, I selected <Toolbox>File -> New and had no idea what to do with the 256 x 256 pixel image that sat on that desktop. The demonstrations in this tutorial start with an existing image and all you will need to know is how to open the image up in TheGIMP: File -> Open.
About the images used here; they came from APOD, (Astronomy Picture Of the Day).
View the individual pages or scroll for the whole tutorial:
Problem: you have a huge image and you want to put it nicely for viewing on a web page. The GIMP is a quick solution. The example image is this image of the Whirlpool Galaxy M51 from APOD, 2002 July 10.
|
The first thing to note is TheGIMP will open the image at a viewable size. It does this without changing the file size, instead it changes the "resolution" of the view. TheGIMP simply zooms the view so that it will fit on your workspace. You can see the actual size in the title bar on the window. The image in this screen shot is actually 1008 pixels wide and 720 pixels long. The titlebar also tells the mode of the image file. When working on an image with TheGIMP this should always read RGB. If your image says something else (Indexed or Grayscale), you should read the mode changing quickie and change it. You will see the difference in the quality of your changes. |
|
Use the mouse and right click on the image. Follow the menu <Image> Image ->Scale Image.... When ever you click an option from the menu that has "..." behind it, expect a dialog. In this case, you should get the "Scale Image" dialog. If you have a desired width, put it in the dialog at the top where it says "Width". 300 pixels is a nice width for web pages or email. After entering the number 300 into the Width box, the "Height" displayed will automatically change to the correct number which is 214 pixels for the sample image. It is best to only use one dimension when altering the image size like this, otherwise the image will become distorted (larger in one direction only). You can see the image that this scale dialog produced here. Perhaps you want your image to look more like a 4 x 6 inch photo on most image rendering web browsers. Simply switch the units to "inches" and put "4" inches in the height box (opting for smaller than 4x6 inches rather than bigger). The transformed image should now look like a 4 x 6 inch photograph on most computer screens. If you need for the image to be exactly a certain pixel size that is different than the size the dialog will automatically adjust itself to be, for example 200 x 200 pixels, use the dialog to scale the image so that one side is 200 pixels and the other side is larger than 200 pixels. This will leave some area to "crop" away (cropping is demonstrated in another "quickie"). The sample image scales to 200 X 280 pixels. |
|
|
For demonstation purposes only, see the distortion that happens when you force the image to scale to an unconstrained size (without the cropping step). This frustrating fact about images on computers is shared with real printed photographs as well. It was just as difficult to make printed photographs or the film negatives fit into a pre-specified format. You can do this with computers, but you will distort the image. |
Problem: you have several jpegs on a web page and need the web page to load faster. Image files contain a lot of information, making images slow to load. On a high speed internet you might not see this; however for people viewing web pages with a slow connection this fact can be painfully obvious. There is a way to reduce the "weight" of image files without changing the pixel size.
It is actually fairly impressive how much the weight of the image can be reduced; this example uses this beautiful image (and huge) of Saturn from APOD, 2002 February 15 (you can clearly see that they scaled and cropped this image to fit on the original web page).
|
The goal here is to reduce the image for a web page, so the first step would be to scale the image to a width of 600 pixels, which is a reasonable pixel size for web viewing. The Info Window for this image reports a weight of 18.7 MB. Now for the task of reducing this weight. Using File ->Save As... Right click with the mouse on the Image and follow the menu path to <Image> File ->Save As... and type a different name into the text box when the new dialog appears making certain that the file extension (the stuff behind the dot) says jpg or jpeg. |
|
If everything is in order, the "Save as JPEG" dialog should appear. If you see instead the "Export File" you need to change the Mode of the image. Any other sort of error or dialog would mean that you mis-typed the file extension (the ".jpg" at the end of the file name). The "Save as JPEG" dialog has a slider and some "spinning" numbers and should appear set at a default value of 85 (this is a percentage -- 85 percent of the original quality). Right under the slider is an estimate of the weight of the image with the shown percentage of quality (File size). Using the default value reduces the weight of the image by almost one kB. Underneath the weight information is an option to see a preview of the image in the image window. By default, this is toggled to Off; toggle it On. This will cause your quality changes to show on the image you are saving. Once it is toggled, you can see what the default setting of 85% will have on your image. In this case, it is difficult to see any changes in the image. |
|
|
Using either the slider or the number spinners or by typing numbers into the little box, you can experiment with the different image quality levels and see what happens to the image and the weight. Very small quality results in a fairly lightweight image however, it almost destroys the original, as shown here when the image quality was set to 3%. |
|
Use your eyes and perhaps other peoples opinion to find a nice balance between what you see and how big the file size is. I opted for a quality of 42%; at this quality you can see the image change some but the savings in weight is still worth it (8.6 kB, less than half of the original weight). Compare four different quality settings on this jpeg race page. People who are still blessed with a slow internet connection might be able to see the loading speed differences as well. |
|
Problem: you need to make a rectangular image square or you would like to make an 8 x 10 inch print of an 11 x 14 inch photo or perhaps you need to get rid of useless, empty or boring background in order to make the subject of your image stand out better. Cropping is different than scaling an image in that it removes image matter where scaling makes the original image use a different number of pixels.
There are two different ways to engage the crop tool. You can select the crop tool button from the toolbox or you can follow the menus <Image> Tools -> Transform Tools -> Crop & Resize. For the crop tool demonstration, an image from APOD, 2002 November 8, NGC 6369: The Little Ghost Nebula.
|
Once the crop tool has been engaged, a left click with the mouse on the image will do two things. First it will shade the areas of the image which have been marked for cropping and draw lines between at the edges of the marked area. One click will shade the whole image and draw only two lines -- you will need to tell the tool the other point. This action is difficult to describe, best to try/see it for yourself instead of trying to make sense of this description. The second thing that happens is the launching of the crop tool dialog. The crop tool is a fairly complex tool; it can be used scientifically (entering the numbers of the desired area into the dialog) or using the corners of the border marks to visually move the selected area or a combination of both. The goal of this demonstration is to make a rectangular image into a square, and both methods should be used to get the best image possible for the goal. |
|
Square means the same number of pixels on all sides. 900 pixels is a good number of pixels for this image; type 900 into both the Width and Height of the crop dialog. With the amount of square "scientifically" selected, it is now time to use visual placement to select which pixels are saved and which are discarded. The area selected so far is square but the image contained within is not so good. |
|
|
The corners where the crop lines meet are very special. The upper left and lower right corners allow you to change the dimensions of the crop selection. The lower left and upper right corners allow you to move the selection without changing the dimensions of the selected area. The mouse will tell you what the corner will do; dimension changing corners get a double arrow curser and corners that move the crop selection get the move star. The task at this point in the demonstration is to move the area to a better position for the image. Using only the move corners of the crop area, position the area to display the best area of the image. |
|
|
|
The actual cropping is initiated by left clicking on the image within the crop selection area or by touching the button marked "Crop" at the bottom of the dialog. |
|
Problem: you need TheGIMP to tell information about an image in an orderly fashion.
This demonstration uses the 2000 November 13, APOD image; an image of three disorderly galaxies.
|
<Image> View -> Info Window initiates a window with the information. |
|
Much of this information appears in other places; the Info Window simply presents it all in one tidy area. New users of TheGIMP can safely ignore "Print Size" and "Resolution"; this embedded information in each image seems to be ignored by every printer or image display; so you can also. Perhaps you have a task similar to the task demonstrated in the Crop Quickie where you need to make an image square, only this task demands that you retain as much of the original information as possible. This is so easy to accomplish by simply determining the smaller of the two pixel dimensions and using this number in the Width and Height area of the crop dialog (in this case, 1548 pixels would be the largest square area that can be made out of this image. The more you play with computer graphics, the more uses you will have for this information. |
|
Problem: you want to add some text to an image but find that the font draws itself all jagged or you would like to run a filter over the image but find that the filter is "grayed" out in the image. These problems are more often than not caused by the mode of the image. Before you do any sort of manipulation to any image with TheGIMP, it is very important to make certain that the mode of the image is RGB and not indexed.
Indexed or RGB modes are the names of two different ways the image handles color information. Indexed has the good quality of being very lightweight, which can be seen in the size of the image. Indexed mode has the bad quality of only using 256 colors; this means a lot of approximation to reduce the colors to so few. RGB has the bad quality of being a heavier weight; the good part being that the format uses millions and millions of colors -- much less approximation.
You can search the web for the definitions and study color theory on your own; new users of TheGIMP should make certain the mode of your image is RGB before working on it, simply.
For this demonstration, an old images from APOD, back from the days of small computers and slow internet connections. Originally appearing June 22, 1995 and reappearing larger yet still indexed on October 26, 1997 a little larger, the famous photo of the earth taken from Apollo 17.
|
Change to RGBIt is so simple to change the mode of an image to RGB that it hardly makes a whole section to this tutorial worth it, however, it is so important that the importance overrides the simplicity. Simply right click with the mouse on the image and follow the menu path <Image> Image ->Mode ->RGB. |
Change to IndexedSo much more complex to make an image simpler -- you get a few more choices when reducing an image from millions of colors to only 256. Using the same image, only this time grabbed from Earth Observatory in full RGB and really really big, a demonstration of converting from indexed back to RGB. Right click on the image and follow the menus <Image> Image ->Mode ->Indexed ... (the three dots at the end of the menu entry tell you to expect a dialog). Trust the default settings and touch the "Ok" button with the mouse. Convert from RGB to indexed only as a last step with TheGIMP. If you are saving your image as a GIF, you will need to take this step. If you are not so worried about perfect color information and more about file size, saving as an indexed PNG is the best option. |
|
|
RGB to GrayscaleThe quickest way to change your photographs from color to "black & white" is to follow the menu <Image> Image ->Mode ->Grayscale. If you would like photographs that seem more like those really wonderful old black and white prints you will need to use some tools that are beyond the scope of this new users tutorial. The ideal use for this mode is to save scanned documents and line drawings with. |
Problem: you need the TheGIMP to make the person or object in your photo to face the other direction.
Using another goregeous image from APOD, 2002 November 14 and TheGIMP's Flip Tool, a demonstration of flipping an image ....
|
Select the Flip Tool from the Toolbox or right click on the image and follow the menus <Image> Tools ->Transform Tools ->Flip. The default behavior of this tool is to flip images horizontally. Touch your image with this tool and everything in the image that was facing right will now face left. |
|
The tool will flip images vertically as well; the tool needs some instructions and gets these instructions from the "Tool Options" dialog which can be found via two menu paths <File> Dialogs ->Tool Options or <Image> Dialogs ->Tool Options. A word about this dialog; the more you want to do with TheGIMP, the more you will probably need to use this tool option dialog. It will show the options for which ever tool is engaged at the moment. When using the Flip Tool you should be able to make 3 images different from your original; play with the tool yourself or see the demonstration. |
|
Problem: you turned your camera vertically to get the best photo of your subject; now your image is "on its side" and in need of rotation.
Using the 2003 October 8 APOD image, this time an image from the Hubble Telescope of the Sombrero Galaxy. Visually pleasing in this presentation; the galaxy has a different orientation when viewed from earth. TheGIMP can make it right by simply following the menus <Image> Image ->Transform ->Rotate 90 degrees CW.
|
Fixing this particular image needs a clockwise (the top goes 90 degrees to the right) rotation. 180 degree rotation is the same as a vertical flip. An easily cropped and rotated image .... |
Enjoy TheGIMP and all it can do; everyone who ever used the gimp was a beginner once. Perhaps while doing these simple operations you started to get new ideas of things for your images, TheGIMP has a way of doing that to its users. There are several other tutorials available first at TheGIMP's own web site and elsewhere online; if you enjoyed manipulating your images in these simple ways, you will probably enjoy learning more. This author did.
|
|
|