Published by Patrick Mutisya · 14 days ago
Be able to resize an image as specified to maintain or adjust the aspect ratio of an image.
The aspect ratio of an image is the relationship between its width and its height. It is usually expressed as a ratio of two whole numbers.
\$\$
\text{Aspect Ratio} = \frac{\text{width}}{\text{height}}
\$\$
For example, an image that is 800 px wide and 600 px high has an aspect ratio of \$\frac{800}{600}= \frac{4}{3}\$.
When you know either the new width or the new height, you can calculate the other dimension using the original aspect ratio.
Formula when new width is given:
\$\$
\text{new height} = \frac{\text{new width}}{\text{original aspect ratio}}
\$\$
Formula when new height is given:
\$\$
\text{new width} = \text{new height} \times \text{original aspect ratio}
\$\$
Original image: 1200 px × 800 px (aspect ratio \$= \frac{1200}{800}= \frac{3}{2}\$).
Task: Resize the image to a width of 900 px while keeping the aspect ratio.
\$\text{new height}= \frac{900}{1.5}=600\text{ px}\$
Sometimes you need to change the aspect ratio, for example to fit a specific frame or layout. This can be done by:
| Software | Maintain Aspect Ratio | Change Aspect Ratio |
|---|---|---|
| Microsoft Paint | Drag a corner handle while holding Shift (or use the "Resize" dialog and check "Maintain aspect ratio"). | Drag a side handle without holding Shift or uncheck the "Maintain aspect ratio" box. |
| Adobe Photoshop | Enter new width or height in the Image Size dialog and ensure the chain‑link icon is active. | Deactivate the chain‑link icon, then enter both width and height. |
| GIMP | Use the Scale Image dialog with the chain icon linked. | Unlink the chain icon, then set the desired width and height. |
| Ratio | Common Name | Typical Uses |
|---|---|---|
| 1 : 1 | Square | Profile pictures, icons |
| 4 : 3 | Standard TV / Computer Monitor (old) | Presentations, printed photos |
| 16 : 9 | Widescreen | Modern video, YouTube, PowerPoint slides |
| 3 : 2 | 35 mm photography | Digital cameras, printed photos |
Resizing images while maintaining aspect ratio preserves visual integrity. Use the simple proportion formulas to calculate missing dimensions, and always verify that the “maintain aspect ratio” option is active in your editing software. When a different aspect ratio is required, consider cropping rather than stretching to avoid distortion.