You are here

HDR (High Dynamic Range) with tone mapping

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

This script helps you making a HDR image by three different exposures.
This script blends three different exposures of the same scene, it combines them to get the best parts of the images.

This procedure works best if you:

  1. have shot three different exposures that would be pleasing to combine,
  2. had the camera mounted on a tripod (not strictly necessary, but helps greatly in aligning the images),
  3. have the scenes are not too different at the boundaries of the blend. If the scene has changed too much (trees blowing, waves, people or cars moving, etc. between the images), especially at or near the "seams" of the blend, it will make the blend not too perfect.

Using the script (on Linux):

Unzip and copy the file into your home/.gimp2.6/plug-ins folder. Set the file to executable.

From command line:

  • unzip
  • cp ~/.gimp-2.6/plug-ins/

Set the file to executable.

  • chmod +x ~/.gimp-2.6/plug-ins/

Sample images:

HDR: HDRCamera's default: Camera's default-1EV: -1EV+1EV: +1EV

    AttachmentSize KB
    GIMP Version: 
    Code License: 


    I used the hdr plug-in for GIMP according to the instructions, but how do I save the resulting file as a .hdr file?

    Thank you for your work!!!

    A fantastic plugin. It can even be used very effectively with one original image.
    For example, if I have a snowy landscape image I can:

    open original image ---> adjust the levels/curves for best highlight detail --> save as a new image
    open original image ---> adjust the levels/curves for best shadow detail --> save as a new image
    open original image ---> adjust the levels/curves for best mid-tone detail --> save as a new image

    By doing the above I still have the original image but also three others with different tonal ranges to use with the HDR plugin. Because of multiple image saves, it is better to use lossless file formats before running the plugin.

    The next stage would be:

    Create a new 3 layered image --> paste the three tonally-adjusted images into their own separate layers --> run the HDR plugin.

    The effect achieved is frequently better than adjustments on the original using curves or levels. Even if it isn't, the stretched tonal range of the HDR image can be a better starting point for applying further filters such as contrast or colour adjustments.

    Thank you for the good idea (trick)!

    You can make it by less steps.
    1. open original image ---> duplicate layer ---> duplicate layer
    2. adjust the levels on the three layers for best highlight, shadow and mid-tone details
    3. run the HDR plugin

    I tried it and it's very effective!

    No problem installing and executing this outstanding script.

    Could you post some suggested HDR settings, or offer some suggestions to making setting adjustments for different situations? I'm making adjustments, but it's kind of a stab in the dark to get what I'm looking for.

    Thanks for creating and uploading such an outstanding script.

    Sorry for the late response!

    The default values is usually good if you make the photos with 1EV difference.

    If the color gradients are not continous then try changing the "Light color darking" and "Dark color lighting" values. (Example: if you make photos with 2EV difference, then the 60 is a good start for this values)

    Extreme value width is the range of the extreme colors (too light, too dark) on the original photo. The greater this value the more pixels change on the original photo.

    Hi feca!

    I'm very interested in your HDR-plug-in, but I can`t install it. I use Gimp 2.6.8. The directory on my notebook looks like this:


    1. Question: In which folder should I install your plug-in?
    2. Question: What means "Set the file to executable"?

    I'm sure, you will have easy answers for me!

    Kind regards

    Thomas saved incorrectly the file

    i can see from the name "" saved as text file !
    on Windows you should use the option to save as "all files" NOT as text
    (correct option is a bit hidden..but look better don't save script as text )

    Now ...It is very probable that you may fix just renaming the file (removing that.txt) but will be safer download it again

    1. Question: In which folder should I install your plug-in?

    Short answer Look in lib, then iside lib there is a plugin folder
    Better answer
    search in your user directory , there is another gimp folder, with another plugin folder

    Use that

    2 Question: What means "Set the file to executable"?
    Nothing that may worry Windows users, that is needed for Linux

    I upload "" file, but this site converted to "". I can't upload the file without txt extension.
    edited: I upload as zip file.

    THIS side ?
    If so should be a bug to report


    Subscribe to Comments for "HDR (High Dynamic Range) with tone mapping"