> ## Content Index
> Fetch the complete content index at: https://thegimp.net/llms.txt
> Use this file to discover other available public pages before exploring further.

# Fix “Set a source image first” in GIMP's Clone and Heal tools
- URL: https://thegimp.net/gimp-clone-source-error/
- Published: 2026-11-19T11:08:34.000Z
- Updated: 2026-11-19T11:08:35.000Z
- Description: Start with the source-selection shortcut, then separate input trouble from empty sampling, locked targets and Clone alignment settings.
- Author: Elena Morris
- Tags: Retouching and restoration

To fix **“Set a source image first”** in GIMP, select Clone or Heal, hold **Ctrl** on Windows or Linux and click clean source pixels on the canvas. On macOS, use **Command (⌘)-click**. Release the key, move to the area you want to repair and paint. I'd prove that sequence on a duplicate photo layer first: it separates a missing source from the extra sampling choices needed for a transparent repair layer.

You don't need another image file or a plug-in. A source is the layer and location the tool samples; the destination is where your ordinary brushstroke lands. The [Clone tool requires that image source before it can paint](https://docs.gimp.org/3.2/en/gimp-tool-clone.html?ref=thegimp.net). Selecting a layer thumbnail alone doesn't set the sampling point.

## Set a source with one clear diagnostic stroke

Use a photograph with recognisable detail and an opaque area to sample. Save the project as XCF before making the diagnostic stroke, and keep the original photograph separately. Avoid starting on an empty layer: an empty source can make a correctly executed click look unsuccessful. For the temporary check, use an unlocked, visible photo layer and clear an unneeded selection with **Select → None**. Keep a selection you still need, and make the diagnostic stroke inside it instead.

1. **Select one photo layer.** Choose its image thumbnail in the Layers dialog, then use **Layer → Duplicate Layers**. Keep only the duplicate selected. The [Duplicate Layers command copies the selected layers](https://docs.gimp.org/3.2/en/gimp-layer-duplicate.html?ref=thegimp.net), so selecting several creates several copies.
2. **Activate Clone.** Choose **Tools → Paint Tools → Clone**, or press **C** when you're not typing in a text field. For Heal, use **Tools → Paint Tools → Heal** or **H**.
3. **Show the active tool's options.** Use **Windows → Dockable Windows → Tool Options**, or double-click its toolbox icon. For the Clone check, set **Source: Image**, **Sample merged** off and **Alignment: Aligned**.
4. **Choose the source on the canvas.** Hold Ctrl on Windows/Linux, or Command on macOS, and left-click an opaque patch of the selected photo layer. Click the image itself, not its Layers thumbnail. In source-selection mode, the cursor becomes a crosshair or reticle.
5. **Release the modifier before painting.** Move to a nearby, visibly different patch and make one short stroke. Clone should copy the chosen detail there. Undo this diagnostic stroke before starting the actual repair.

Choose a visibly different destination for this check. Copying a uniform white patch onto another white patch provides very little evidence that the source was set. Once the short stroke works, return to your intended layer arrangement.

[![GIMP Clone options with Source Image, Sample merged off, No source selected and Alignment Aligned.](https://storage.ghost.io/c/da/21/da2186e6-6044-4206-b621-584ed1984ab7/content/images/2026/11/remove-object-gimp-imagefix-ui-20261117.webp)](https://storage.ghost.io/c/da/21/da2186e6-6044-4206-b621-584ed1984ab7/content/images/2026/11/remove-object-gimp-imagefix-ui-20261117.webp?ref=thegimp.net)

For the duplicate-layer check, choose Image and Aligned, then modifier-click the photo on the canvas; no source has been selected in this view. [Open the Clone source options at full size](https://storage.ghost.io/c/da/21/da2186e6-6044-4206-b621-584ed1984ab7/content/images/2026/11/remove-object-gimp-imagefix-ui-20261117.webp?ref=thegimp.net).

## Read the symptom before changing more settings

| What you observe                                       | What to check next                                                                                                |
| ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- |
| “Set a source image first” still appears               | Whether the canvas received the source-selection modifier and click; whether Clone's Source is Image.             |
| Control-click opens a menu on a Mac                    | Use Command-click, then release Command before painting.                                                          |
| The source cursor appears, but no repair is visible    | The sampled pixels, destination layer or mask, selection, locks, opacity and alignment.                           |
| A transparent Repair layer receives nothing            | Enable Sample merged, or explicitly set the photo layer as the source before selecting Repair as the destination. |
| The stroke works, then stops or repeats the same patch | The source boundary and Alignment mode; choose a new source when needed.                                          |

These are different stages of the operation. GIMP's [source-painting code raises the missing-source error when no source drawable is stored](https://github.com/GNOME/gimp/blob/GIMP%5F3%5F2%5F8/app/paint/gimpsourcecore.c?ref=thegimp.net). A blocked destination or an unhelpful sample can still prevent a useful result after that source exists. Repeating Ctrl-click won't remove a destination lock.

## When Ctrl-click doesn't choose a source

**On macOS, start with Command.** Control-click is the context-menu gesture. GIMP's [source tool asks the platform for its source-selection modifier](https://github.com/GNOME/gimp/blob/GIMP%5F3%5F2%5F8/app/tools/gimpsourcetool.c?ref=thegimp.net), which is why a tutorial's generic Ctrl label can mislead Mac users. Watch the instruction in the status bar while your pointer is over the image and follow the key shown by your build.

Hold only the required source modifier for this check. Release Shift and other shortcut keys, click once, then release the modifier. If you keep holding it, you're still choosing a source rather than making the repair. A click while the pointer is over the Layers dock or a numeric field isn't the canvas click the tool needs.

If the cursor doesn't enter source-selection mode, try the other Ctrl key on Windows or Linux, then try a mouse with the keyboard rather than a tablet's programmed button. This isolates the input combination before you change the image. Compare the tablet's button mapping or any keyboard remapping with the key GIMP requests.

A [Linux source-selection discussion documents a useful distinction](https://www.gimp-forum.net/Thread-Heal-and-Clone-source?page=2&ref=thegimp.net): one Ubuntu user traced a failing left Ctrl key to a system pointer-location shortcut, while another Mint user could use both Ctrl keys. The other Ctrl key is a diagnostic, not proof that a particular Linux distribution is broken. Check the shortcut intercepting your key before changing desktop settings; adding Alt isn't a universal GIMP requirement.

I'd leave a full preferences reset or reinstall until after this controlled check. Neither tells you whether the intended modifier-click reached the canvas, and a broad reset can discard settings unrelated to the source problem.

## Clone onto a transparent repair layer

A separate repair layer keeps copied pixels apart from the photograph. It also creates two decisions: *where the pixels come from* and *where the stroke goes*. Selecting Repair as the destination doesn't automatically make the photograph underneath its source.

1. Select the photo, then choose **Layer → New Layer…**. Name the new layer **Repair**, use **Transparency** for **Fill with**, and leave it above the photo. Keep only Repair selected.
2. Keep the photo visible. Select Repair's image thumbnail, with no layer mask active, and turn off **Lock pixels** and **Lock alpha channel** for this diagnostic. Alpha lock prevents painting into an entirely transparent area.
3. In Clone's Tool Options, use **Source: Image**, enable **Sample merged** and choose **Alignment: Aligned**. Hide text, overlays or other visible material you don't want in the sample.
4. Modifier-click useful visible detail on the canvas, release the key and paint a short stroke on Repair. Toggle Repair's visibility to see what that layer contributes.

The [Sample merged option samples the visible layers](https://docs.gimp.org/3.2/en/gimp-tool-clone.html?ref=thegimp.net) rather than only the active layer. It suits a repair made from the visible composite, but it can also copy an unwanted overlay. Treat the visible stack as the source material.

To sample just one photograph, leave **Sample merged** off instead. Select that photo layer, modifier-click its canvas pixels to store the source, release the key, then select Repair and paint there. The [Heal manual also permits sampling one active layer and painting elsewhere](https://docs.gimp.org/3.2/en/gimp-tool-heal.html?ref=thegimp.net). Re-establish the source deliberately when you change which image or layer you want to sample.

## The source is set, but the stroke doesn't show

Check the destination before choosing the source again. For this diagnosis, use one visible pixel layer, its image thumbnail and a small stroke inside its bounds.

- **Layer or mask:** the [Layers dialog distinguishes the image and mask thumbnails](https://docs.gimp.org/3.2/en/gimp-dialogs-structure.html?ref=thegimp.net). A stroke aimed at a mask edits its opacity information rather than copying visible colour into the photo. A mask or an opaque layer above the repair can also hide its contribution.
- **Selection:** if the restriction isn't intentional, choose **Select → None**. A hidden or tiny selection can confine the stroke elsewhere. [Select None doesn't remove a floating selection](https://docs.gimp.org/3.2/en/gimp-selection-none.html?ref=thegimp.net); if one is present, turn it into a normal layer before returning to the repair.
- **Locks and visibility:** inspect the destination's eye icon, layer opacity, Lock pixels and Lock alpha channel. Pixel lock blocks brush changes; alpha lock protects transparent areas. Change only the intended repair target's locks.
- **Brush strength:** for Clone, choose **Mode: Normal**, a regular round brush, a visible brush size, full **Opacity** and disable **Enable dynamics** temporarily. The [paint-tool controls affect brush strength and dynamics](https://docs.gimp.org/3.2/en/gimp-tools-paint.html?ref=thegimp.net); a tablet pressure mapping can be a separate reason for a faint or absent stroke. Restore your preferred brush settings after the check.
- **Transparent source:** sample opaque image detail. Clone doesn't erase the destination by copying transparent pixels; a fully transparent source produces no visible change.
- **Layer bounds:** the destination layer can be smaller than the canvas. Try inside its existing bounds first. GIMP 3's **Expand Layers** option can extend a painted layer within the canvas, but it doesn't enlarge the image canvas.

For a repair hidden by its mask, the [layer-mask guide](https://thegimp.net/gimp-layer-mask/) explains how to inspect the mask without flattening the project.

## Fix a source that repeats, stays still or runs out

For an ordinary retouch, I'd begin with **Aligned** and choose a fresh source near the defect. It keeps the relationship between source and destination consistent across strokes. Watch both cursors: the place supplying the detail matters as much as the place receiving it.

| Alignment  | Source behaviour                                                  | Why it can look wrong                                                      |
| ---------- | ----------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Aligned    | Keeps the source-to-destination offset between strokes.           | The source can eventually run beyond useful image detail or past its edge. |
| None       | Returns to the chosen source origin for each new stroke.          | Separate strokes can repeat an obvious patch.                              |
| Fixed      | Continues sampling the source origin as you paint.                | The same small sample can appear smeared along the stroke.                 |
| Registered | Copies matching coordinates from the source into the destination. | On the same unchanged layer, it can copy pixels onto themselves.           |

These [four alignment modes have distinct sampling rules](https://docs.gimp.org/3.2/en/gimp-tool-clone.html?ref=thegimp.net). Registered is useful for transferring corresponding detail between layers, but it is a poor starting point for copying a nearby clean patch over a mark. If a stroke stops partway, inspect the source boundary: image cloning doesn't wrap around the source the way a tiled pattern does.

## Use the same source sequence in Heal

Heal also needs a source: activate it, modifier-click clean detail, release the key and paint over the defect. Its [result incorporates the destination's surroundings](https://docs.gimp.org/3.2/en/gimp-tool-heal.html?ref=thegimp.net), so it won't always look like a literal colour copy. Use Clone for the initial visible-copy diagnosis if Heal's blending makes the result difficult to judge.

If Heal reports **“Healing does not operate on indexed layers”**, you have reached a different restriction. Keep the original and use a separate working copy, then choose [**Image → Mode → RGB**](https://docs.gimp.org/3.2/en/gimp-image-convert-rgb.html?ref=thegimp.net) before continuing. The [Heal implementation explicitly rejects indexed targets](https://github.com/GNOME/gimp/blob/GIMP%5F3%5F2%5F8/app/paint/gimpheal.c?ref=thegimp.net); choosing another source won't change the image mode.

Once the tool responds, reduce the repair to the area that needs it. Heal can suit a small mark in continuous texture; Clone gives more direct control when a line or edge must continue. The [object-removal guide](https://thegimp.net/remove-object-gimp/) covers that choice and the separate Heal Selection plug-in workflow. Installing a plug-in isn't needed to set the source for built-in Clone or Heal.

Keep Photo and Repair in the XCF master, then export a separate delivery image. GIMP's [Save and Export commands preserve different kinds of file](https://docs.gimp.org/3.2/en/gimp-images-out.html?ref=thegimp.net): XCF retains the layers for another edit, while the exported JPEG or PNG is the finished copy. If the source still won't register, record the exact GIMP version, operating system, input device, status-bar instruction and a view of Tool Options plus the Layers dock. Those details distinguish an input fault from an image-state problem far better than “Clone doesn't work”.