Fix Wide-Angle Lens Distortion in GIMP

Wide-angle lenses are essential for capturing tight interior spaces in real estate photography, but they frequently introduce barrel curvature and converging vertical lines. This guide provides a straightforward, step-by-step process to correct both barrel distortion and perspective issues using GIMP's built-in transform and filter tools, ensuring your interior photos have clean, perfectly straight walls and natural proportions.

Step 1: Set Up Alignment Guides

Before applying corrections, create visual guides to measure straight vertical and horizontal lines.

  1. Open your image in GIMP.
  2. If rulers are not visible, enable them via View > Show Rulers (or press Ctrl + Shift + R).
  3. Click on the vertical ruler on the left side and drag your cursor onto the canvas to place a vertical guide line along a door frame, corner wall, or window edge.
  4. Place 2–3 vertical guides across different areas of the room to check alignment.

Step 2: Fix Barrel Distortion (Curved Lines)

Wide-angle lenses naturally curve straight lines near the edges of the frame. Correct this curvature first.

  1. Go to the top menu and select Filters > Distorts > Lens Distortion....
  2. Locate the Main slider:
    • Drag the slider to the negative side to counteract outward barrel distortion (curved walls bending outward).
    • If the corners are stretched inward (pincushion), move the slider toward the positive side.
  3. Adjust the Edge slider to fine-tune the outer borders of the frame.
  4. Adjust the Zoom slider if black borders appear around the canvas edges.
  5. Click OK once the curved walls and ceilings align straight with your guide lines.

Step 3: Correct Keystoning (Converging Verticals)

Tilting the camera up or down creates converging vertical lines where walls appear to lean backward or forward.

  1. Select the Perspective Tool from the Toolbox, or press Shift + P.
  2. In the Tool Options panel, ensure Direction is set to Normal (Forward) and Interpolation is set to Cubic or NoHalo for the best quality.
  3. Under the Guides setting in the Tool Options, select Grid or Number of lines to display an overlay grid.
  4. Click on the image to activate the transformation grid.
  5. Click and drag the top-left and top-right corner handles outward if the walls lean inward at the top, or drag them inward if the walls tilt outward.
  6. Align the structural lines of the room (wall joints, columns, cabinet edges) so they are parallel to the vertical grid lines.
  7. Click the Transform button in the floating dialog to apply the correction.

Step 4: Crop the Final Image

Correcting lens distortions leaves empty, transparent wedges around the borders of the canvas.

  1. Select the Crop Tool from the Toolbox, or press Shift + C.
  2. In the Tool Options, you can check Fixed: Aspect ratio if you need standard dimensions (e.g., 3:2 or 16:9).
  3. Drag a bounding box inside the corrected image area, excluding all transparent edges.
  4. Press Enter to crop the image.
  5. Go to File > Export As... to save your final, corrected interior photo.