4.2. Change the Size of an Image (Scale)

Problem: you have a huge image and you want to resize the is so that it will display nicely on a web page. The example image is this beauty m51_hallas_big.jpg from APOD [APOD03].

Afbeelding 3.16. Example Image for Scaling

Example Image for Scaling

The first thing that you might notice, is that GIMP opens the image at a logical size for viewing. If your image is really big like the sample image, GIMP will set the zoom so that it will display nicely on the screen. The zoom level is shown in the status area at the bottom of the Image window.

The other thing to look at in the title-bar is the mode. If the mode shows as RGB in the title bar, you are fine. If the mode says Indexed or grayscale, read the Paragraaf 4.6, “Change the Mode”.

Afbeelding 3.17. GIMP Used for Image Scaling

GIMP Used for Image Scaling

Use ImageScale Image to open the Scale Image dialog. You can right click on the image to open the menu, or use the menu along the top of the Image window. Notice that the Scale Image menu item contains three dots, which is a hint that a dialog will be opened.

Afbeelding 3.18. Dialog for Image Scaling in Pixels

Dialog for Image Scaling in Pixels

If you have a desired width, put it in the dialog at the top where it says Width. If you don't have such a number in mind, you can steal the width of GIMP's default image size, which is 256 pixels. This is shown in the figure above.

Afbeelding 3.19. Dialog for Image Scaling in Inches

Dialog for Image Scaling in Inches

Perhaps you want your image to look more like a 4x6 inch photo on most image rendering web browsers. Switch the units to inches and enter 4 inches in the height box (opting for smaller than 4x6 rather than bigger). You can see this dialog above.

Let GIMP choose the other dimension length for you. Meaning, it requires more image knowledge to change both width and height and have it look correct. So change only one item and let GIMP change the rest. To change the other dimension, see Paragraaf 4.4, “Crop An Image”.