In the following image I tried to reconstruct the given righthand side gradient with Gimp on the lefthand side.

There is a small bar of a given gradient, which does not smoothly connect to the majority of the image on the left.

How can I get a smooth transition that cannot be perceived anymore?

N.B.: To the right, there would be an image. I would like to extend its background to the left in order to use it as a canvas.


2 Answers 2


I'm not a GIMP user.. but in Photoshop I would merely select the part of the image I want to extend, then transform the selection to cover the added area.

enter image description here


enter image description here

  • Yeah, this is also possible in GIMP, a little more complex in that you have to copy and paste the selection first before transforming, but essentially the same, and much easier than creating a custom gradient.
    – Billy Kerr
    Sep 18 at 11:23

You can create custom gradients in GIMP by sampling the colours from your original. Adding more stops is the key to getting an accurate gradient.

Basically, make a selection next to the gradient, then click and drag a gradient with the gradient tool, insert colour stops by clicking on the gradient line.

Then select a colour stop, click on the Left colour square, and when the Change Stop Colour dialog appears, click on the eyedropper tool and sample from the original gradient, hit OK. Repeat for the other stops.

Here's an example showing the sampling of a colour stop from the original image.

enter image description here

You can then apply the gradient to a shape on a new layer, and move it to over your original to check, and disable the View > Show Layer Boundary. The example below shows them overlapped. The gradient is almost exact.

enter image description here

It's also possible in GIMP to do essentially the same as Scott has shown with Photoshop. Select, copy and paste the gradient section, then using the Unified Transform tool Shift+T, while holding down Shift, and click and drag the edge handle to stretch it over the entire image. Don't forget in GIMP after transforming a floating selection, you then have to anchor the floating selection either to a new layer, or to the existing layer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.