HDR photos with the GIMP

HDR photos with the GIMP
A tutorial on making High Dynamic Range photos using the GIMP or similar software.

This instructable is aimed at a range of people, so you can skip to the bits relevant to you with the information below. I apologise for the verbosity of the main instructions, but I figure you can skip parts you already understand, and I may as well put in the detail for people who don't.

If you don't know what High Dynamic Range (HDR) is or how it works, read on.
If you are comfortable with the concept of HDR and want to know how to do it in photo editing software, go to step 3
If you are familiar with the process of making HDR images and just want details of how to do it in the GIMP, go to step 4
If you are familiar with the interface of the GIMP and just want a quick set of instructions on how to make HDR (for instance if the theory bores you and you just want to make some HDR images), go to the recap stage in step 10. The details of each step are in... the relevant step.

If you know the theory, how to make HDR images and are familiar with using the GIMP.. I'm not sure why you are reading this, but hello anyway. My pitiful attempts (I'm relatively new to HDR and the GIMP) are in the later steps, perhaps you could give me some pointers? :D

Lastly, if you find this instructable helpful (or even not particularly) and have constructive suggestions for how I could improve it, let me know and I'll edit it.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Theory- photographic

Theory- photographic
What is dynamic range?

A camera, like the human eye, has a light sensor that captures the image. The sensor has a limited sensitivity to light, so under any given conditions there is a range of light levels that the camera can differentiate between. It doesn't matter if you are looking at the sun or two suns, your camera will throw up its little electronic hands and say "that is white". Similarly, unless you have a very flash camera or night vision, looking a dark grey bat in some slightly darker grey surroundings at night time, your camera will say "that is black". The difference in light level between the darkest levels your camera can distinguish between and the lightest it can distinguish is called the dynamic range- for a regular digital camera it is about 100 to 1, for the human eye it is in the range of millions to one.

The "dynamic" part is because the range can be altered, by opening or closing the camera iris (aperture), opening the shutter for a longer or shorter period (exposure), and how much the camera amplifies the signal on the light sensor (ISO). The ability to change the camera's range of light sensitivity is what we will exploit to create HDR images.

Why HDR?

The dynamic range of a camera is not great, and not a patch on human vision. Things that you would see as dark, the camera will tend to see as a black silhouette. Things that you see as bright, the camera will tend to "wash out" and see as white. This means that taking photos of subjects with a high range of light levels, for instance a nice sunset, is very difficult with a regular camera and a single exposure. In making HDR photos, we exploit the ability to move the camera's dynamic range over the entire range of light levels.

By taking a shorter exposure or closing the aperture, the camera will underexpose. This means that the dark parts of the scene will silhouette and the light parts will be recorded well. Taking a longer exposure or opening the aperture, the camera will overexpose, meaning the light parts of the scene will wash out to white, but the shadows of the scene (that were black in the underexposed photo) will come out well. Composite HDR refers to a range of techniques to take the best parts of both of these photos and combine them in a photo that captures more of the range of light levels in the scene.
« Previous StepDownload PDFView All StepsNext Step »
52 comments
1-40 of 52next »
Dec 11, 2011. 4:20 AMaoakes2 says:
This tutorial is completely unclear from step to step, in particular from step 8 to 9 where there seems to be a step missing!
Nov 7, 2011. 5:49 AMwaiting1962 says:
For those having issues using GIMP see this MOD of Gimp .. it makes it more like Photoshop's interface....

http://www.gimpshop.com/

"GIMPshop is a modification of the free/open source GNU Image Manipulation Program (GIMP), intended to replicate the feel of Adobe Photoshop. Its primary purpose is to make users of Photoshop feel comfortable using GIMP. It shares all GIMP's advantages, including the long feature list and customisability, while addressing some common criticisms regarding the program's interface: GIMPshop modifies the menu structure to closely match Photoshop's, adjusts the program's terminology to match Adobe's, and, in the Windows version, uses a plugin called 'Deweirdifier' to combine the application's numerous windows in a similar manner to the MDI system used by most Windows graphics packages. While GIMPshop does not support Photoshop plugins, all GIMP's own plugins, filters, brushes, etc. remain available. Host Unlimited Domains on 1 Account Due to the changes to the interface, many Photoshop tutorials can be followed in GIMPshop unchanged, and most others can be adapted for GIMPshop users with minimal effort."
Apr 27, 2008. 2:07 PMgeekguyandy says:
Well, now that I have tried this technique with GIMP on many photos I have set up for this, I am disappointed. The final image looked roughly the same, although some dark and light spots had changed, and I can see the exact changes from the layer masks. I have no idea if this is truly HDR or not, but certainly none of the final images I ended up with were anything much better than what I started with. Even in your example image, the picture is still very poor, although you now have some really bright spots around one tree. When I search around or HDR photos, they all look amazingly vibrant and surreal, and this effect is no where to be found on my photos or your example. It doesn't help that there are no other comments from people ere who have tried it. Has anyone else tried this? It would be good to find out if I am just doing something wrong, or if this instructable is not really making an HDR image. Thanks Andy
Apr 27, 2008. 8:19 PMgeekguyandy says:
Ok, so I messed around with it more and figured out some other issues with the pictures I am using. I need to try a new set up I think. The light seemed great for a regular shot today, so I took 3 different angles for attempts with this HDR, but one was too hard to line up, and another was just too poor color to start with. But I'll try to paste the image of before/after of the one I had the best luck with. Problems: 1) It is incredibly hard to line up pixels. I tried using HDRAlignmentTool which does a reasonably good job at getting the photos in line, but only handles 3 shots to a screen. I then put in the layers and their masks, and found that images were still 1-3 pixels off which creates odd gray ghosting all over the place. So I manually moved them until it appeared to line up. Still though, when I zoom in to a far edge, I can see ghosted outlines (rotational translation maybe?) 2) The color curves were just plain bad to start with. Without changing anything on them, I end up with very gray images. I think crummy parts just added up in the layers to make blobs of gray. I went to colors > curves and pulled the right side lower, the left side higher (not technical I know, but this was after playing around with many configurations and it seemed best). This helped a lot in removing the gray blobs and making the overall color much better. 3) The color in the final image is better, but I think due to the small 1-2 pixel translations the sharpness decreased for the HDR image. Even with a tripod, a program to line up photos, and manually trying to move them, it seems almost impossible to get them exact to the pixel. Maybe a remote on the camera would help, but I don't know if my camera can change shutter speed by remote (I have a Canon Powershot S5 IS). Anyway, the sky added real texture, the underside of the kiosk is visible, and the grass is more vibrant. The tree edges and the gravel in the road are blurrier though.
kiosk-hdr-small.JPG
Jul 22, 2011. 7:39 PMscuicho says:
Try using a 2-3 second delay with your tripod that way the vibrations from you hitting the shutter button have time to die down before your exposure.
May 21, 2008. 3:14 AMScaryDave says:
Having looked into HDR on the net for a bit, I have discovered this plugin for GIMP which seems to automate a lot of the process and I think would come up with better results than doing it manually.

ExposureBlend

There are instructions on the site- seems to include more options for tweaking as well. It's quite a powerful tool from what I can make out after 5 minutes of playing about!

I was looking at this tut to see if I could create a faux-HDR image from a single photo. I'll give it a go now!
Dec 25, 2008. 4:06 PMeat_squids says:
This plugin is amazing, thanks for sharing it!
normal.jpgguitarhdr.jpg
May 21, 2008. 7:43 AMScaryDave says:
Agreed, PKM, I like to have control too. However, the plugin does seem to be doing some other stuff to the images like applying gaussian blurs- not that that's too hard anyway.

The other sweet feature is the exposure alignment which is probably the only reason for using this plugin rather than doing it manually.

Thanks for the guide by the way- was very helpful =]
Jan 3, 2009. 9:54 PMrayhdavidson says:
I am amazed how much stuff one has to wiggle through just to get to be making a HDR image!! Or" To just to make a Colour Photo to be partly Black and White. Trying to follow some of these instructions are just plain difficult. This is mainly because it is often assumed that one knows where to look for what button or icon to press when an insttructions says; Paste image on to layer" Ok" Sounds simple. But wait! Now show me where to go to do this and what sequence to follow instead of just written basic intructions. They are ok if you know the Gimp program. What about the ones who are trying to make sense as to where everything is and what sequence to follow! Gimp is obviously a fairly loaded Software with all sorts of goodies. Just not user friendly. No wonder it is Free! I have a paid version i use to do HDR images with and it works great. Easy to follow and simple! It aslo has all the funtions one needs to make great HDR images. I was curious to see how Gimp would be for me. I'll stick to my paid Program. As i always say" Keep it simple. The world is complex enough as it is. Cheers" I have a HDR
Apr 3, 2009. 1:40 PMScwounch says:
No wonder it is Free!

Yeah, cause professional-grade, feature-rich programs that took years of volunteer time to develop are obviously worthless!
Dec 16, 2009. 3:02 AMsp_key says:
Like linux, drupal, php and almost all programming languages?

Gimp might be free but it only needs a skilful OP to produce good work.
Jul 17, 2011. 5:22 PMcpalacios gómez tagle says:
"Skillful OP" is someone who takes time to learn to use any programe. I believe GIMP is a masterful piece of software, made an enthusiastic community, and most of the beau tiful creativity comes from tenacious people.

If you're used to eat only steaks, you will never understand the healthy fish for your diet.
Apr 30, 2009. 7:54 AMamando96 says:
gimp is awsome, but this new version kills me, idk where half the stuff are :S
Mar 8, 2009. 1:05 PMzerolols says:
I would love to be nice about these directions, but I cannot be constructive because I did not find them useful. I have effectively produced an image worse than the 3 I started out with using your directions, because they are not clear.
Feb 23, 2011. 3:21 PMegbertfitzwilly says:
Its a poor workman who blames his tools...
Mar 24, 2009. 2:40 AMjoshmatix says:
These instructions are great for someone who is familiar with GIMP. Thank you. I think you should state that upfront, so people have their expectations set right. Thanks for taking the time. I found it very usefull.
Aug 26, 2010. 7:43 AMrmfought says:
Make sure you have the new layer mask selected in the layer window. Then paste the mask layer and hit anchor.
Aug 1, 2010. 2:03 PMendolith says:
Just use File --> Open as Layers and select all the pictures at once
Jun 10, 2010. 10:10 AMarewealmost says:
Photomatix is way easier than Gimp. In Photomatix it does everything for you. all you have to do is load the images and it blends the images together. Then you hit tone mapping. Just move the sliders backwards or forwards to change the image. I've even got it to work about 100% on Ubuntu 10.04. I just think it is better and easier and simpler than gimp or photoshop.
Jun 2, 2010. 9:23 AMdscotthep says:
Many (even most?) digital cameras will do 'exposure bracketing'.  They will automatically take three pictures; one at the [camera determined] optimal exposure, one over-exposed and one under-exposed. 

This is an easy way to get your shots without a lot of the work.
Feb 17, 2010. 7:04 PMpr3tard says:
You can also open as layers the three photos that will make up the composite.  My camera (Canon Rebel DSLR) takes the pictures in the order of 0, -2, +2 so they open with the Original as Background layer, the Dark one as the next, and the Light one as top most layer.
Feb 2, 2010. 6:11 AMpajoohesh says:
Perfect tutorial although did not understand the the other way that you described (tone mapping). I tested the procedure on some photos and works perfect.

Thanks
Aug 29, 2009. 6:03 AMthepaul1993 says:
this is great, but you can do it in adobe cs3/4 in 2 steps.
Sep 29, 2009. 8:23 AMjackbomber says:
that's great for commercial use but for home use gimp's free.
Nov 23, 2008. 7:25 AMraudibert says:
This is very well done. I will be attempting an HDR process in the next few days using these instructions. If I have problems following the instructions, I'll let you know. Thanks very much!
May 9, 2009. 3:03 PMDivideByZero says:
Right click on the layer in the layers window, make sure edit layer mask is selected, then go into the edit menu, paste into.
Jan 6, 2009. 10:14 AMEOBeav says:
Comment about layer masks: When I was doing this at home, I experimented with one more step after desaturating the mask. I used a threshold filter on it so that I could get entire sections that were either opaque or transparent. This seemed to work when I had, for example, a cliff, part of a river, and a sky. Each one of those three items were exposed at different levels, and I wanted to get the best ones compiled into one picture. This gave me a more pronounced HDR effect, but not so much that it didn't look realistic. What are your thoughts on using the threshold filter after decomposing? BTW, this is a great tutorial, and one that has really got me going in HDR images. It's a great way to improve your own photographs.
Dec 25, 2008. 4:04 PMeat_squids says:
Well, here's my attempt at it...it actually turned out pretty good.
normal.jpgguitarhdr.jpg
Nov 27, 2008. 7:37 AMzoom123 says:
Qtpfsgui is a great program for doing this, despite having the worst and least memorable of any software name ever. I would still rather do HDR in gimp, but I am not sure how to do the tone mapping. I think it is the tone mapping part that makes HDR images look so different.
Nov 24, 2008. 10:09 PMturt-o says:
I'm stuck here, I can't paste the mask layer :(
Jul 31, 2008. 12:14 PMrediculosis says:
Your tutorial was perfect. Although my pictures didn't come out as HDR as I thought they would be, I still get the concept. Thanks! :D
Jun 21, 2008. 3:14 PMcaffeinebump says:
What's the fill type for this layer?
May 25, 2008. 5:24 PMsolo.card says:
Interesting. I shall try this soon I hope!
Feb 2, 2008. 6:30 PMMatrixEagle15 says:
i've been using the GIMP for about 6 months now its an amazing piece of freeware
Mar 18, 2008. 11:44 AMstartzone_6934 says:
it sure is :) It was originally a free Linux replacement of Adobe Photoshop, but the creators were nice enough to port it to Windows & Mac, too.
1-40 of 52next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
143
Followers
17
Author:PKM