Skip navigation.
KDE Developer's Journals

Photo KDE Tutorial 1-2: Curves adjust

uga's picture

This is the second part of tutorials aimed at showing how to use KDE's photography tools (namely ShowFoto and/or Krita), to process, edit and fix your photographs. The first part of the tutorials showed how to interpret a histogram, and how to use the levels tool. This tutorial will show you how to use a more advanced tool, called the Curves Adjust tool. It's much more powerful than the levels tool but requires more patience and practise to get good results.

So lets begin. This time we have this photo, kindly donated for the tutorial by Jos van den Oever, from his akademy 2008 photos.

The problem in this photo again, is that there are parts of the image that are very dark. The two people are clear in the photo, but the background is so dark that we cannot actually see the pub's details. Let's see what happens if we try using the levels tool, as we learnt in the first tutorial:

As you can see, some parts of the image get blown if we try using the levels tool. What does that mean? It means that we have parts of the image in the right hand of the histogram that have been all converted to white. That's because, unlike the image in the previous tutorial, this image is not concentrated on the left of the histogram. It covers gray levels from black to white. And when we try clipping the histogram with the input sliders, we are "eating" part of those gray levels' information.

Why does this happen? Because the photo scenario had a very High Dynamic Range. Ie, it had objects from very dark (background) to very bright (illuminated by flash).

In this sort of images, if we try moving the input sliders of the levels tool, we will delete part of the photo's gray level information, losing details, and the result isn't nice.

So what to do now? Don't worry, showfoto comes to the rescue again! (#1) We can use the Curves Tool from the menu Colors->Curves Adjust...:

Selecting this option will show a new popup with a dialog that you may find similar to the levels tool. You can see the resulting histogram on top, and the input histogram on the bottom, just like in the levels tool:

The difference is in the way the control works. In this tool, the input histogram has a diagonal line in it. Clicking on it with the left button of the mouse, adds control points. You can move those control points up or down. The result, as shown in the picture above, is that the gray levels from the horizontal axis are converted into the gray levels in the vertical axis.

Moving the control points up, makes that part of the image brighter. Moving them down, makes that part of the image darker.

In this case, I wanted to make the darkest parts of the image brighter, so I added a control point on the left part of the histogram, and moved the point upwards. As the rest of the image was also getting a bit too bright, I added a second control point to avoid it.

So, lets press < OK > and see what we get of it:

We have managed to make the shadows brighter, and now the pub is more visible, but the image is now a bit washed out. As if it were too bright all over the place. Can we do anything about it? Sure, lets try the levels adjustment again:

Now that the shadows were adjusted using the curves, and the colors are more uniform, we can follow the method shown in the first tutorial and adjust the levels of the photo, as shown above. The histogram's main data was a bit displaced to the left, and adjusting levels, I made it cover the whole range again.

Lets see the result:

Ah, now this is much better. The pub background is much more visible and the two persons are not blown.

I think that's already acceptable, but if we are picky, the two people are a bit washed out due to the flash light. So, even if that goes out of the scope of this tutorial (it'll be covered in the following tutorials), lets adjust a bit the saturation in the image for a better result:

Now this image looks much nicer than the original, yes. I hope you liked this tutorial and will see you in the next one!

==========
Notes:
#1: This and previous tools used in the tutorials also exist in krita. We will get to this in the future. For now, I keep using showfoto for being the simplest of the two for using and learning.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
quique's picture

Please go on!

I'd like to encourage to keep publishing this tutorial series.
I'm fairly new to digital photography manipulation, and your articles will be of great help.
Thanks!

gromgull's picture

Nice!

Can you make my face less red and sweaty though? Smiling

uga's picture

lol, I asked around who those

lol, I asked around who those in the photo were, and nobody replied. Now I know =)
Actually I thought that reflection was due to the flash rather than sweat, but I'll keep the idea for a future krita masks tutorial Eye-wink

kwilliam's picture

Very helpful posts!

I've used showfoto to improve my photos before, but it's always been random trial and error. Now I actually know what these things mean! These posts are great! Thank you.

dotancohen's picture

How to know whether to adjust Gamma / Contrast / Brightness

I would like to see a separate tutorial that would explain how to know what needs to be adjusted, from gamma, contrast, and brightness. Thanks!

uga's picture

What needs to be adjusted is

What needs to be adjusted is very subjective generally. Depends on your taste.

A common way of thinking by photographers is that a photo should represent what your eyes saw or how your mind interpreted the scene. Then, if the photo didn't match with that, you could try fixing that.

A photo may be dark, and I can teach the tools to recover those dark places. But I cannot tell that you should always use that. Maybe you liked it being dark for some reason. Maybe it was intentional.

Covering this sort of thing would require a whole photography course imho. Also, I don't think I'm the best person to teach such methods and it may go rather out of topic in a kde site like this one.

Nevertheless, you have many online photography tutorials though, and also paper magazines. Look for example at Luminous Landscape for some nice tutorials on general photography

rabauke's picture

Thanks

Although it seems so simple, I never got to any of that functionality. With your tutorials it works great! So thanks a lot for mediating that functionality to users.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.