Professional Photo Management with the Power of Open Source

digiKam Film Grain tool re-written…

by digiKam



Since a very long time, my TODO list included a complete review of digiKam Film Grain tool. Based on an old Gimp Guru tutorial, this tool lacks a lots of features as the capability to manage colors and luminosity noise, graininess size, and photo-electronic noise rendering.

I have always been impressionned by PowerRetouche photoshop plugin. This company make great tools for photographers, but of course, all are closed source and non-free. PowerRetouche collection has a Film Grain simulator has you can see in screen-shot below.

Few week ago, following this entry in KDE bugzilla, Julien Narboux has started to brain about Image Editor Film Grain tool. The first stage has been to remove old code and implement a new one working on HSL color space to apply noise on luminosity channel. He has added the capability to adjust graininess on Shadows, or MidTone, or highlight, as PowerRetouche tool.

But i have still not happy with this implementation, especially about to use HSL color space. If we want to simulate CCD sensor noise, playing with luminosity channel been not enough. So, i started to implement YCbCr color space conversion in digiKam core pixels access class, and adjust noise generator to be able to play with Chrominance channels. The result is a tool which can reproduce all noise provided by a digital camera, as you can see below.



For each Channel, you can apply and mix noise as you want. You can also change the graininess size, as with PowerRetouche, and use two different noise generators : one based on Gaussian distribution, and another one on Poisson. This last one is more realistic to render film graininess, but take more time to compute.

If you want to process Film Grain tool in batch, no problem, digiKam Batch Queue Manager is there for you. You will save a lot of time in your work-flow...


Finally, this new version of Film Grain tool will be available for digiKam 1.2.0, which will be released in few days. I hope that you will enjoy this tool… Note the huge difference between digiKam 0.9 and 1.x : it doesn’t look like a professional photo software now ?

question regarding unknown error

hi i’ve just tried digikam again after quite a long time (almost two years i think) and i am very impressed. there is one thing i don’t know how to solve though, when i try to export an image to picasa web service (never done that before) it tries to see if there is still a valid token, then asks me for pw&un which i provide and then fails (“Error occurred: Unknown error. Unable to proceed further”) - what do i do?

thank you for your help in advance and let me say again that i am very impressed by digikam!


kipi-plugins version ?

Sound like an old problem from kipi-plugins package. I recommend to update to last 1.1.0 release.

pgf graphic file

After Digikam allowed .pgf storage on images i try it and it saved space with good quality. But only Digikam can read and write it. Nothing else. Even Krita do not use it. Or Gimp. Is it not for users? Or too new?

PGF is like JPEG-XR…

PGF image format is like JPEG-XR from M$ : too new. The huge difference is that PGF is an open source project !


Gilles, once again thanks for this great software.

Is there also something on your to-do list to improve the red eye removal tool? Right know it is not working very good and creates a lot of artifacts.


yes, it’s planed

yes, this is another tedious code to review, especially to simplify tool and add non-human eyes correction.