Contact Us twitter facebook

Gimp Tutorial: Sharpen a photo

How to use Gimp to increase the sharpness of a photo with Unsharp Mask and High Pass filter.

Blurred photographs can cause serious frustration. The use of an economic lens, too much aperture or the blur caused by the photographer's movements on long shutter speed can give our images an unsatisfactory results. To overcome this annoying drawback Gimp helps us with two filters: the Sharpen (Unsharp Mask) and the High Pass. Obviously these filters cannot correct one shot that is completely out of focus, but allows you to save a photograph that is good enough, but not perfectly sharp.

Let's take, as example, this photo of the "Cinque Torri", an Italian montain. The name could be transalted as: "The Five Towers". It was a really sunny day, so shutter speed was ideal. The lens was a Tamron 17-40 f/2.8, a decent lens, but not the best one. Even if I closed the aperture to f/5.6, the result was a little "soft", the details was not as much sharp as I wanted. Let's see two different ways to solve the sharpness problem using Gimp.

Immagine poco nitida e relativo crop.

First way: Sharpen Filter (Unsharp Mask)

The first way is really easy and fast, the best for who wants a good result with the minimum effort: Sharpen Filter. Unsharpen mask has been invented to sharpen the scan of books, because in the '90 the quality of the scanner was not so good, so it's fast and simple, but the results in photography are not ideal, since this technique was invented for another purpose. Remember to go easy on the sliders. You simply have to open Sharpen (Unsharp Mask) and set something like this:

filtri, miglioramenti maschera di contrasto

The Unsharp Mask acts mainly where there are strong chromatic differences, so search a point in the photograph highly contrasted outlines are clearly visible and zoom in on it. To see the results of the operations, remember to tick the Preview box at the bottom.
The Radius parameter must be proportional to the resolution of the photograph. The larger the image, the more the cursor must be moved to the right. This setting defines the number of pixels that will be used to calculate the contrast. In a 5000 horizontal pixel photo I suggest a radius of 4, but you can find your favourite. The Amount defines how much Sharpness we want to apply to the photo. This parameter must be set according to the conditions of the image. If you exaggerate with the amount, digital noise would be really visible and contours would become too strong. Threshold slider allows you to make the effect more smooth where there are soft contrasts, as example a wall or a person's skin would be smoother, but the borders will be contrasted.

prima

Before Sharpen Filter.

dopo

After Unsharp Mask.

Obviously there are also negative sides in using this filter, the result may appear unrealistic and any digital noise (or compression) is heavily emphasized. You need to find out how to dose the cursors and observe the image as a whole. It could also be a good idea to duplicate the layer, add a strong Sharpen Filter and then blend the contrasted layer over the original one with only a fraction of the opacity.

High Pass Filter

If you need more control than the Unsharp Mask, you have a second way to sharpen a photo: the High Pass Filter. In this second case we will create a layer that will be used to sharpen the image in a second step. Dividing the procedure in two separate steps, you will be allowed to better define every parameter in order to get a more controllable result. Let's see how to proceed.
First of all you need to create a copy of the image on a New Layer. Click on the layer with the Right mouse button 🠞 Duplicate Layer, now select the layer above, in this case cinque-torri.TIF copy.

copiare il livello selezionare livello copia

Now we have to apply the High Pass Filter on the layer we have just created. Click on Filters 🠞 Enhance 🠞 High Pass and set the sliders as you need. The Dev. Std. cursor defines the radius of the filter. Higher values means a larger area interested by the contrast mask around the borders. Default value is 4, generally is more than enough, but you can set any number you want. The Contrast slider is used to increase the sharpness, but pay attention to don't exxagerate because the result will bee a mess. Generally I leave 1,000. If moving the cursor some burned areas appears, the result will be uncorrect, so I suggest to never exceed a value of 1,400 if you want a realistic image.

filtri, miglioramenti passa alto

Once you have applied the High Pass Filter the result will be a gray image with borders of strange colors, it's ok. Choose the filtered layer and change the blend mode to Hard Light with an opacity of 100% If the result is too intense you can reduce the opacity of the later, or choose Soft Light as blend mode. If you want a more intense sharpness you can duplicate the layer as much times as you want, with any combination of hard and soft light you decide.
It could be a good idea, to keep the digital noise levels low, to reduce the noise on the highpassed layer using G'Mic before merging the layers. If you need a tutorial for noise reduction with G'Mic, click here. Now you only need to merge down the upper layer or layers, click with the Right mouse button 🠞 Merge down. If you have a lot of different layers it will be faster to choose Flatten Image.

fusione in luce forte.

No one of these two tools can make miracles: if you picture is completely out of focus, or really blurred, or the digital noise is too high, it will be almost impossible to get something decent. If you picture needs only an enhance, results will be amazing.

prima

Before High Pass Filter.

dopo

After High Pass Filter.

If you liked this tutorial, you can press the back button down there, and you will find all the many other guides we wrote about photo editing with Gimp, or you can go there to take a look to our photography tutorials.

w3c Validated Contatore siti