Pankaj Shah web agency director in London with over 20 years of experience in web design and project management

I hope you enjoy reading our blog posts.

If you want DCP to build you an awesome website, click here.

Crop and Resize an Image Using GIMP 2.8

If you’re building a website and want it to load fast, one of the biggest culprits behind slow page speeds is oversized images. In this tutorial, we’ll walk through exactly how to crop, resize, and compress an image using GIMP (GNU Image Manipulation Program) – a completely free image editing tool – so your images load quickly without sacrificing visual quality.

Why Image Optimization Matters

Before diving into the how-to, let’s look at the problem. In the example used in this tutorial, we start with a photo of a car’s steering wheel against a blue sky. At first glance, it looks great – sharp and high quality. But when we check the file details:

  • File size: 6.1 MB
  • Dimensions: 3,464 x 3,464 pixels
  • Resolution: 300 DPI (standard for photographed images)

That’s a massive file for a website. Uploading an image this large will slow down page load times significantly, hurting both user experience and SEO. The goal of this tutorial is to take that 6.1 MB image and shrink it down to a fraction of its size — while keeping it sharp enough to look great on screen.

Step 1: Download the Tools You Need

You’ll need two free tools:

  1. GIMP – a free, open-source image editing program (available for Windows 10 and 11, with Mac versions available via a quick Google search). Download it from the official GIMP website and grab the user manual if you want to dig deeper into its features later.
  2. Measure-it – a lightweight browser extension (available for Firefox, Chrome, and Safari) that lets you measure pixel widths directly on a webpage.

Installing GIMP is straightforward – download the installer for your OS and follow the on-screen prompts. The Measure-it extension installs just as easily through your browser’s add-on store; once added, you’ll typically need to restart your browser to activate it.

Step 2: Figure Out the Exact Width You Need

Before you touch your image in an editor, it’s important to know the exact pixel width your website needs. Guessing leads to images that are either still too large or awkwardly stretched.

Using the Measure-it extension:

  1. Click the extension icon – your webpage will gray out and a crosshair cursor will appear.
  2. Drag the crosshair across the space where your image will go (for example, aligning with a heading or block of text).
  3. Note the pixel width Measure-it reports – in this tutorial’s example, that’s 660 pixels.

Don’t worry about calculating height manually. As long as you lock the aspect ratio during resizing (more on that below), the height will scale proportionally on its own.

Write down both numbers – your target width (660px) and your original image width (3,464px) – so you have them handy for the next step.

Step 3: Open and Crop Your Image in GIMP

Open GIMP and load your image either by:

  • Dragging and dropping the file directly onto the canvas, or
  • Using the Open tool to browse to the file.

Make sure both the Toolbox and Layers panels are visible (Windows → Toolbox, and Windows → Dockable Dialogues → Layers). You’ll only need one tool for this step: the Crop Tool.

To crop out unwanted areas (like excess sky in our example):

  • Click and drag across the image to define your crop area.
  • Starting your drag from outside the canvas edge ensures you keep the full width while trimming only the top or bottom.
  • Adjust the crop box edges by hovering near them until a resize handle appears, then drag to fine-tune.
  • Press Enter to apply the crop.

The highlighted area is what stays; everything outside the highlight gets removed.

Step 4: Resize the Image to the Correct Width

Even after cropping, your image is likely still far too wide for the web. To fix this:

  1. Select your image layer in the Layers panel.
  2. Go to Image → Scale Image.
  3. Make sure the chain/link icon between width and height is enabled – this locks the aspect ratio so your image doesn’t get squashed or stretched.
  4. Enter your target width (e.g., 660 pixels) – GIMP will automatically calculate the correct height for you.
  5. Change the resolution from 300 DPI to 72 DPI (the standard for web display – 300 DPI is meant for print, not screens).
  6. Click Scale.

Your canvas will appear tiny at this point – that’s just your zoom level. Set the zoom to 100% to see the image at its true web-ready size.

Step 5: Export and Compress the Image

This is where the real file-size savings happen.

  1. Go to File → Export As.
  2. Choose JPEG as the file format.
  3. Rename the file (e.g., add _compressed to the filename) so you don’t overwrite your original high-res version.
  4. Click Export – a quality settings dialog will appear.
  5. Check “Show preview in image window” so you can see exactly how compression affects the image in real time.

Here’s what happens at different quality levels in this example:

Quality SettingFile SizeVisual Result
0%5.6 KBHeavily pixelated — unusable
100%207 KBExcellent quality, still large
70–80%43.5 KBGreat balance — barely noticeable quality loss
Sliding the quality down to around 70–80% delivers a sharp-looking image at a fraction of the file size, with no visible degradation for typical web use.

The Results: From 6.1 MB to 41 KB

After cropping, resizing, and compressing, the final exported image checked in at just 41 KB – down from the original 6.1 MB. That’s roughly a 99% reduction in file size, with the image still looking crisp and professional once placed on the actual website.

Key Takeaways

  • Always check your original image’s dimensions and file size before uploading anything to your site.
  • Measure the exact pixel width your layout needs before resizing – don’t guess.
  • Lock the aspect ratio when scaling to avoid distortion.
  • Drop resolution to 72 DPI for web images – 300 DPI is print-only and adds unnecessary file weight.
  • Export as JPEG at 70–80% quality for the best balance of file size and visual quality.
  • Never overwrite your original file – always save compressed versions under a new filename.

Following this simple workflow ensures your website images load fast, keep visitors engaged, and don’t drag down your site’s performance – all using free software.

Author

Picture of Pankaj Shah

Pankaj Shah

Pankaj Shah is the founder of DCP Web Designers, an award-winning London-based web design and digital marketing agency. With over 20 years of experience, he specialises in WordPress web design, WooCommerce, SEO and helping businesses build effective online solutions.
Tell Us Your Thoughts

This website (dcpweb.co.uk) uses cookies to improve your browsing experience and help us understand how our site is used. By continuing to browse this website, you agree to our use of cookies.

To learn more about how we collect, use, and protect your data, please read our Privacy Policy.

Since 2004, we have designed and developed websites for companies across a wide range of industries, from local service businesses to ecommerce brands and professional organisations.

Our focus is on creating websites that not only look professional, but also perform well in search engines, attract the right audience and support long-term business growth.

If you are looking for experienced web designers who understand how to build websites that deliver real results, our team is here to help.

Privacy Policy

Last Updated: 01/07/2024

Different Colour Productions Ltd (“we,” “us,” or “our”) is committed to protecting your privacy. This Privacy Policy outlines our practices concerning the collection, use, and disclosure of personal information when you visit our website or engage with our services. By using our website and services, you consent to the terms outlined in this Privacy Policy.

1. Information We Collect

We collect various types of information to provide and improve our services. The types of information we may collect include:

1.1. Personal Information: This may include your name, email address, phone number, and any other information you provide when you contact us, request information, or subscribe to our newsletter.

1.2. Log Data: When you visit our website, we automatically collect information, such as your IP address, browser type, pages visited, and the time and date of your visit.

1.3. Cookies and Similar Technologies: We use cookies and other tracking technologies to improve your experience on our website. You can adjust your browser settings to reject cookies or be alerted when cookies are being used.

2. How We Use Your Information

We use the collected information for various purposes, including:

2.1. Providing Services: To provide web design and related services you have requested from us.

2.2. Communication: To respond to your inquiries, send updates, and provide customer support.

2.3. Analytics: To analyse and improve our website and services, as well as monitor usage patterns.

3. Information Sharing and Disclosure

We do not sell or rent your personal information to third parties. However, we may share your information with third parties under the following circumstances:

3.1. Service Providers: We may share your information with trusted service providers who help us deliver our services, such as hosting providers, analytics providers, and marketing services.

3.2. Legal Obligations: We may disclose your information when required by law, to comply with legal processes, or to protect our rights, privacy, safety, or property.

4. Your Choices

You have choices regarding your personal information:

4.1. Access and Update: You can access and update your personal information by contacting us.

4.2. Marketing Communications: You can opt out of receiving marketing communications from us by following the unsubscribe instructions in our emails or emailing [email protected]

5. Security

We take appropriate measures to protect your personal information from unauthorised access, disclosure, alteration, or destruction.

6. Links to Other Websites

Our website may contain links to third-party websites. We are not responsible for the privacy practices of these websites. We recommend reviewing their respective privacy policies.

7. Changes to this Privacy Policy

We may update this Privacy Policy from time to time to reflect changes in our practices. Any changes will be posted on this page, and the date at the top will indicate the latest update.

8. Contact Us

If you have any questions or concerns about this Privacy Policy or our practices, please contact us at: [email protected]

By using our website and services, you acknowledge that you have read and agree to this Privacy Policy. Different Colour Productions Ltd is committed to safeguarding your personal information and respecting your privacy rights.

ThreeBestRated Top 3 Website Designers in London 2026 award for DCP Web Designers Certificate