Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions




4.2.  Change the Size of an Image (Scale)

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. Our example image is this beauty m51_hallas_big.jpg from APOD [APOD03].

Figure 3.14.  Example Image for Scaling

Example Image for Scaling

The first thing that you might notice is that The GIMP opens the image at a logical size for viewing. So, if your image is really big (like the sample image) it will display it zoomed out until it fits nicely. You can tell if GIMP has done this by the percentage number in the title bar. Just because it looks right in this “View” doesn't mean anything.

The other thing to look at in the title-bar is the mode. If it says RGB in the title bar, you are fine. If it says Indexed or grayscale there, you should read the Section 4.6, “ Change the Mode.

Figure 3.15.  GIMP Used for Image Scaling

GIMP Used for Image Scaling

Image entry in the menu and the sub menu from the screenshot should reveal itself. Click on Scale Image.... When ever you click an option from the menu that has ... behind it, expect another dialog. This time, you should get the Scale Image Dialog.

Figure 3.16.  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 New 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 demonstrated in the figure above.

Figure 3.17.  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. Simply switch the units to “inches” and put 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 will take more image knowledge to change both width and height and have it look correct. So only change one and let GIMP change the rest. To change the other length see Section 4.4, “ Crop An Image.

  Published under the terms of the GNU General Public License Design by Interspire