GIMP - Gimp Quickies
GIMP - Gimp Quickies
Gimp Quickies
by Pat David
Intention
So you installed GIMP on your computer, congratulations! GIMP is a very
powerful image manipulation software, but don’t let that intimidate you.
Even if you don’t have time to learn advanced computer graphics, GIMP
can still be a very useful and handy tool for quick image modifications.
It is my hope that these few examples will help to solve those small,
quick modifications that you may need to apply to an image. Hopefully
this will lead to learning even more powerful image editing capabilities
that GIMP is capable of as well.
For quick access, these are the four main points I’ll cover in this
quick tutorial:
Crop an Image
In keeping with the spirit of the predecessor to this page, I will be using
images from the Astronomy Picture of the Day (APOD), provided by
NASA.
All you need to know to follow these quick examples is to be able to find
your image and open it:
File → Open
https://www.gimp.org/tutorials/GIMP_Quickies/ 1/14
28/12/2024, 00:21 GIMP - Gimp Quickies
It’s a common problem that you may have an image that is too large for
a particular purpose (embedding in a webpage, posting somewhere
online, or including in an email for instance). In this case you will often
want to scale the image down to a smaller size more suitable for
your use.
The image we’ll be using to illustrate this with is The Horsehead Nebula
in Infrared.
When you first open your image in GIMP, chances are that the image will
be zoomed so that the entire image fits in your canvas. The thing to
notice for this example is that by default the window decoration at the
top of GIMP will show you some information about the image.
View of the GIMP canvas, with information at the top of the window.
Notice that the information at the top of the window shows the current
pixel dimensions of the image (in this case, the pixel size is 1225×1280).
To resize the image to new dimensions, we need only invoke the Scale
Image dialog:
https://www.gimp.org/tutorials/GIMP_Quickies/ 2/14
28/12/2024, 00:21 GIMP - Gimp Quickies
In the Scale Image dialog, you’ll find a place to enter new values for
Width and Height. If you know one of the new dimensions you’d like for
the image, fill in the appropriate one here.
You’ll also notice a small chain just to the right of the Width and Height
entry boxes. This icon shows that the Width and Height values are locked
with respect to each other, meaning that changing one value will cause
the other to change in order to keep the same aspect ratio (no strange
compression or stretching in the image).
For example, if you knew that you wanted your image to have a new
width of 600px, you can enter that value in the Width input, and the
Height will automatically change to maintain the aspect ratio of
the image:
https://www.gimp.org/tutorials/GIMP_Quickies/ 3/14
28/12/2024, 00:21 GIMP - Gimp Quickies
As you can see, entering 600px for the width automatically changes the
height to 627px.
If you want to specify a new size using a different type of value (other
than Pixel size), you can change the type by clicking on the “px” spinner:
https://www.gimp.org/tutorials/GIMP_Quickies/ 4/14
28/12/2024, 00:21 GIMP - Gimp Quickies
A common use for this could be if you wanted to specify a new size as a
percentage of the old one. In this case you could change to “percent”,
and then enter 50 in either field to scale the image in half.
Once you are done scaling the image, don’t forget to export the changes
you’ve made:
File → Export…
For more detail about using Scale Image, you can see the
documentation.
https://www.gimp.org/tutorials/GIMP_Quickies/ 5/14
28/12/2024, 00:21 GIMP - Gimp Quickies
Using the same Horsehead Nebula image from above, I have resized it to
200px wide (see above), and exported it using different levels of
JPEG compression:
As you can see, even at a quality setting of 80, the image is significantly
smaller in filesize (77% size reduction), while the image quality is still
quite reasonable.
When you’ve finished any image modifications you are doing, and are
ready to export, simply invoke the export dialog with:
File → Export…
https://www.gimp.org/tutorials/GIMP_Quickies/ 6/14
28/12/2024, 00:21 GIMP - Gimp Quickies
You can now enter a new name for your file here. If you include the
filetype extension (in this case, .jpg), GIMP will automatically try to export
in that file format for you. Here I am exporting the image as a JPEG file.
You can also navigate to a new location on your computer through the
Places pane, if you need to export the file to a different location. When
you are ready to export the image, just hit the Export button.
This will then bring up the Export Image as JPEG dialog, where you can
change the quality of the export:
https://www.gimp.org/tutorials/GIMP_Quickies/ 7/14
28/12/2024, 00:21 GIMP - Gimp Quickies
From this dialog you can now change the quality of the export. If you
also have the “Show preview in image window” option checked, the
image on the canvas will update to reflect the quality value you input.
This will also enable the “File size:” information to tell you what the
resulting file size will be. (You may need to move some windows around
to view the preview on the canvas in the background).
When you are happy with the results, hit the Export button to export.
To see more details about exporting different image formats, see Getting
Images out of GIMP in the manual.
Crop an Image
There are numerous reasons you may want to crop an image. You may
want to remove useless borders or information for aesthetic reasons, or
you may want the focus of the final image to be of some particular detail
for instance.
https://www.gimp.org/tutorials/GIMP_Quickies/ 8/14
28/12/2024, 00:21 GIMP - Gimp Quickies
Once the tool is activated, you’ll notice that your mouse cursor on
the canvas will change to indicate the Crop Tool is being used.
Now you can Left-Click anywhere on your image canvas, and drag the
mouse to a new location to highlight an initial selection to crop. You
don’t have to worry about being exact at this point, as you will be able to
modify the final selection before actually cropping.
https://www.gimp.org/tutorials/GIMP_Quickies/ 9/14
28/12/2024, 00:21 GIMP - Gimp Quickies
Initial pass with the Crop Tool. Crop Tool options (left), cropping on the canvas (right).
After making the initial selection of a region to crop, you’ll find the
selection still active. At this point hovering your mouse cursor over any
of the four corners or sides of the selection will change the mouse
cursor, and highlight that region.
This allows you to now fine-tune the selection for cropping. You can click
and drag any side or corner to move that portion of the selection.
Once you are happy with the region to crop, you can just press the
“Enter” key on your keyboard to commit the crop. If at any time you’d
like to start over or decide not to crop at all, you can press the “Esc” key
on your keyboard to back out of the operation.
Another Method
Another way to crop an image is to make a selection first, using the
Rectangle Select Tool:
https://www.gimp.org/tutorials/GIMP_Quickies/ 10/14
28/12/2024, 00:21 GIMP - Gimp Quickies
You can then highlight a selection the same way as the Crop Tool, and
adjust the selection as well. Once you have a selection you like, you can
crop the image to fit that selection through:
There may also be a time that you’d like to flip an image as well. These
commands are grouped together under the same menu item:
Image → Transform
Flip an Image
If you want to flip your image, the Transform menu offers two options,
Flip Horizontally, or Flip Vertically. This operation will mirror your image
along the specified axis. For example, here are all of the flip operations
shown in a single image:
https://www.gimp.org/tutorials/GIMP_Quickies/ 11/14
28/12/2024, 00:21 GIMP - Gimp Quickies
Rotate an Image
Image rotation from the Transform menu is contrained to either 90°
clockwise/counter-clockwise, or 180°.
https://www.gimp.org/tutorials/GIMP_Quickies/ 12/14
28/12/2024, 00:21 GIMP - Gimp Quickies
Original (top left), 90° clockwise (top right) 90° counter-clockwise (bottom left), 180°
(bottom right)
In Conclusion
The simple examples shown here are just the tip of a really, really large
iceberg. These are, however, common modifications that many people
are often looking to make without having to learn too much about image
processing. Hopefully they have been helpful.
The original tutorial this was adapted from can be found here.
https://www.gimp.org/tutorials/GIMP_Quickies/ 13/14
28/12/2024, 00:21 GIMP - Gimp Quickies
GIMP Tutorial - GIMP Quickies (text & images) by Pat David is licensed under a
Creative Commons Attribution-ShareAlike 3.0 Unported License.
Search GIMP.org
https://www.gimp.org/tutorials/GIMP_Quickies/ 14/14