4.2. Cambiar el tamaño de una imagen (Escalar)

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].

Figura 3.16. Imagen de ejemplo para escalar

Imagen de ejemplo para escalar

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 Sección 4.6, “Cambiar el modo”.

Figura 3.17. Uso del GIMP para escalar la imagen

Uso del GIMP para escalar la imagen

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.

Figura 3.18. Diálogo para escalar la imagen en píxeles

Diálogo para escalar la imagen en píxeles

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.

Figura 3.19. Diálogo para escalar la imagen en pulgadas

Diálogo para escalar la imagen en pulgadas

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 Sección 4.4, “Recortar una imagen”.