Monday, 8 September 2014

Advanced: All seeing eye

So, the first advanced tutorial for you!  In this tutorial I will look at the basics of HDR imaging in the GIMP (or Photoshop).  As normal I will be using the GIMP because it's free but you should be able to do this in Photoshop.  Here goes!

Getting the range

First off I need to explain something about dynamic range.  A camera is a relatively simple being.  It can only see a certain difference in light levels, its dynamic range, in other words it cannot see bright white to deep black in one go.  Take a look at this which shows the problem:


We can either have the room properly exposed or outside properly exposed but not both with one picture.  To our eyes we can see both room and out the window (although out the window may be bright enough to make our eyes hurt); this is because our eyes have a higher dynamic range than our cameras.  In other words our eyes can see almost all the way from dark to light.  To use my word analogy, from my intro to post article, a human would see: 'Hello World' where as a camera may see 'hll wrld' when under exposed or 'eo o' when over exposed.  

HDR or High Dynamic Range imagery is a trick to get all the different light levels in one picture (e.g. to display 'Hello world' from one photo that says 'Hll wrld' and another that says 'eo o').  Normally it has to be done in post although some cameras (iPhones for example) can do it in the camera.  I have never been that impressed with the HDR function on my iPhone however.

There are several different packages out there that simplify the HDR process and allow you to do funky things with the images but I am going to show you a basic (for an advanced post processor of images) way to make an HDR photo.

See the light

First step is to get our photos.  To do this you can either use your camera's Auto Exposure Bracketing (AEB) mode or take three differently exposed photos yourself.  This method needs one under exposed image, one mid range image and one over exposed image.  (One point to note is that I too badly over exposed my over exposed image which causes us some issues but this can be ignored for this tutorial, the method is what matters!)  When taking these pictures it is vital that you don't move the camera between shots as there is no easy way to line up the pictures laterally in the GIMP (at least not that I'm aware of) and forward and backwards motion is impossible to rectify.  Not having the pictures lined up properly can cause horrible ghosting effects around the edge of objects and can result in a loss of definition.  Also objects that move during the exposures will cause similar problems (e.g. plants, people, animals etc.) so it's always worth trying to avoid things like this when a blurred object will spoil the image.

Once we have the images we need to import them into the GIMP as separate layers.  To do this open one image in the GIMP then go 'File > Open as layers...'.  Select your other two images and press 'ok'. I normally open the mid-range image first, rename the layer as mid then open the other two images as layers, renaming them as dark and light or similar.

Once you've done that you should see something like this:


Now this looks nothing like what our eyes see, we still have some work to do but you can clearly see the three layers in the layer toolbox and a messy image in the image window.  So what next?

Now we have to apply some masks to the layers.  Masks allow you to selectively modify the transparency of certain areas of an image, in the case of HDR images by their whiteness.  First up is the dark layer, this is relatively easy!

Make sure the dark layer is the one that you are working on (i.e. it is highlighted) then go to 'Layer > Mask > Add Layer Mask...':


This brings up the following dialogue box:


Select the 'Grayscale copy of layer' (American spelling again!) but make sure the 'Invert mask' box is unticked like above, and press the 'Add' button.  This will give you an interesting result!


Looks like an old fashioned negative right? Also note how there are now two thumbnails shown for the dark layer, the one on the left is the layer and to its right is the mask.  We're about halfway there now.  We need to do a similar thing for the light layer.

Select the light layer so that it is your working layer and again go to 'Layer > Mask > Add Layer Mask...' and select 'Grayscale copy of layer' but this time make sure you tick the 'Invert mask' box like shown below and then press 'Add'.


This gives you our almost finished HDR shot (note how both the light and dark layers have their masks shown next to their layer icons and note the difference between them):


The final thing to do now to complete the HDR (ignoring any re-sizing or watermarking) is to flatten the image to allow us to save in a sensible format.  To do that go to 'Image > Flatten Image' and the three layers will be compressed to give our final image with one layer:


Now I mentioned I made a mistake with over exposing too much, what this has done is caused the right hand side of the window reveal to look very grey instead of a bright magnolia and the same has happened to the boxes on the left hand side of the foreground.  With a bit of patience I could have done better with my exposures but what you can hopefully see is that now, in one image, we can see the detail both inside the room as well as outside the window with no appreciable loss of sharpness or anything else.

HDR is a very powerful tool and if time and energy allows I may do some future blog posts on using some of the other tools out there that make this process easier and or examine some of the other ways to make HDR more punchy.  A word of warning however, HDR pictures are large, very large, this is because they have the information of three images in one, used sparingly it can be effective, used a lot will fill your hard drive!

There seems ti sometimes be too many HDRs flying around the place and it can become a bit much but each to their own! Have fun playing with this technique and happy snapping!

Beginner: The darkroom goes digital, part deux

Well, I said I would show you the difference between Aperture and the GIMP/Photoshop and how much easier it is to work with so here goes!

Grand tour

First off let me do a similar tour to the one I did for GIMP to orientate you, here's the workspace for Aperture:


Notice how much different it looks!  This is because Aperture is designed to be both an organiser of your digital library and also an editing package.  The first screen shot shows it in it's organiser mode, on the left (if you can make out the tiny writing) the 'Library' tag is selected showing all of the 'Projects' on my computer.  A Project is a collection of images which you upload (normally at the same time but you can combine multiple uploads into a project, or split one upload into many projects), you can also create 'Albums' from multiple projects here and access things like the face recognition tool which is really helpful for archiving things, most recently uploaded pictures, all pictures etc.  Top right are a few other buttons which allow you to adjust the views by number of photos (to give a tiled effect or a filmstrip effect) or to show you photos taken by face identity or location.  You also have a loupe to allow you to zoom in on small parts of an image and a search function which allows you to look for keywords, star scores, colour tags and many other things.  I often use the star scoring system to help me whittle down my photos and get rid of the rubbish ones.  But enough of the organising, I want to talk about editing.  I have selected the same image as last time, so you can see the difference between Aperture and the GIMP, and double clicked on it to make it fill the whole screen.  I have also then gone to the 'Adjustments' tab on the left hand side where it was previously on library (the other tab 'Info' is where all the meta-data is stored).


Under the 'Adjustments' tab you can see some of the different things we can do to the image as well as two further drop down boxes.  The 'Add Adjustment' drop down allows you to select from all the different adjustment tools that Aperture has whilst the 'Add Effect' box allows you to pick from effects such as monochrome, auto enhancements etc.

Now, I could cheat and just hit 'Auto Enhance' under the 'Add Effects' drop down but I don't want to do that I actually want to get down and dirty and show you how to do things manually.  As with everything in photography things are subjective so what I think is good you may disagree on but, as before, hopefully you agree the photo is under exposed, wonky and lacks a bit of punch with the colours.

Twister

So first things first I'm going to straighten the image.  Now compared to the GIMP this is a bit easier, the grid Aperture gives as a guideline is fixed so you can line it up more easily, however it may not line up to the horizon so there is still a bit of guess work involved!  Aperture also automatically crops so that you get a rectangular picture of the original aspect ratio.  To straighten you use the tool in the tool bar on the bottom left of the window which looks like a wonky rectangle with a dotted line through it:


When you select this and then click into the photo, slightly off to one side, it will bring up a yellow grid.  Moving your mouse up or down then rotates the image and you can then align the horizon to the yellow grid like this:

Leave a light on for me

So now we get to the neat bits about Aperture.  You can see the histogram at the top of the 'Adjustments' tab like you get in the GIMP or Photoshop and whilst you can play around with curves like I showed you for the GIMP aperture has three other ways to adjust for the exposure two of which I will show you now.

The first is the exposure slider:


This is under the 'Exposure' adjustment and allows you to set the points which are white, the points which are black, how bright the image is and what it's overall exposure value is.  I played around with this and settled for adding about 3/4s of a stop of exposure to brighten the image.  Being honest I only did this after finishing all the other adjustments so I won't show you the result of this until I get to the end of the post!

The other method that I regularly use is to alter the shadows and highlights.  This is the same as dodging and burning allowing you to make shadows brighter or highlights duller.

  
With this image I chose to lift the shadows a bit to make them brighter and also to tone down some of the bright white bits in the sky.  As with most modifications I did this by trial and error until I got an effect I was happy with.

I can see a rainbow

Next up is the ability to bring some more punch to the colour.  In aperture this can be done using the 'Color' adjustment (note the horrific American spelling again).  


This time in addition to changing the green and making it more punchy I also chose to play with the blue to bring out the colour in the top of the boat and the sky.  Aperture allows you to play with the hue, saturation, luminosity and range all at the same time.  For the time being I only wanted to play around with the saturation and luminosity or how green the green is and how bright the green is (and blue).  Again this was trial and error until I got this:  


Easy so far hey?  A neat trick that you can do with aperture is to brush in effects too, so if I wanted to I could make the grass black and white by brushing the black and white in rather than having to mass about with selections, but more on that another time!

Size matters

Now, as I said before Aperture automatically crops an image to keep it rectangular when you rotate.  However I still am left with some annoying grass on the left and with too much sky for my liking.  To solve this I need to apply a crop.  This is also found at the bottom on the left near the rotate button and looks like two crossed tri-squares.


When you crop the image it temporarily shows the whole image rotated so that you can see where your crop will be in relation to this rotated version of the master.  As with the GIMP or photoshop you can choose to constrain the crop to a certain aspect ratio or go freestyle, which is what I chose to do.  When cropping you get given a grid divided into thirds to help you work out the best proportions.

Getting out there

One of the great things with Aperture is that it allows you to print from raw images, but if you want to share your images with other people or on the web then you need to get it into a format that is shareable.  The eagle eyed amongst you may have seen that I was working on this image in raw format and given that I want to share it with you I need to get it into a JPEG format of a reasonable size.  I do this by going to 'File > Export > Version':


Which brings up the window below.  Here I can choose the destination folder, folder name, file name and what format of image I export in.  I have a preset for blogging which adds my watermark and resizes the image to a more useful size so I just use that and press export.  


For those of you who don't have that set up you can go to 'Edit' in the drop down box for 'Export Preset' which gives you a window looking like this:


Here you can edit the presets Apple give you or create your own like I have.  I have added a watermark (see my watermarking article), I have constrained it to have a longest edge no more than 1024 pixels, set a moderate image quality of 7, set the format to JPEG, set the DPI to 72 which is fine for on screen use and chosen to include metadata as well as the watermark to help me protect my image.

End in sight

So what do I get from that:


Whilst you may argue that the grass still looks a bit weak (and I may agree on that) my whistle-stop tour through Aperture has allowed me to make the corrections that I needed to to get this image into a position where it is good enough to share.  I could correct this by deepening the shadows a bit and or adjusting the contrast.

I think for most of the modifications I want to do to an image Aperture is great and much easier to use than my old version of Photoshop Elements or the GIMP.  It certainly runs faster too!

Remember the final words of wisdom I shared with you on post from my previous article, have fun with whatever post you get up to and happy snapping!