• About
  • Contact
  • What People Are Saying

Tilt-shift simulation in Gimp

Sep12th
2011
11 Comments Written by Daniel Veazey

There are a lot of tutorials out there that tell you how to simulate tilt-shift photography (actually the technique is just tilt simulation, but I’ll call it tilt-shift since everyone else does) in Gimp. And those tutorials are okay, but all the ones I’ve seen take a rather simple approach that leaves some elements of the image blurry when they shouldn’t be. So here’s my way of making the best tilt-shift simulation in Gimp.

1. Image selection

A good candidate for tilt-shift simulation is a photo that is taken from high up and far away from the subject. While it’s not completely necessary, the end result will be better if you choose an image with this perspective. For our tutorial, I have chosen this photo I took of Arkansas Nuclear One from the top of Mt. Nebo.

UneditedThis is a completely unedited photo straight out of the camera. It was a hazy morning, so the photo lacks contrast and sharpness. We’ll take care of it in the next step.

2. Pre-editing the photo

Now you’ll want to do your typical photo editing, like adjusting colors and whatnot. One important step is to make sure your image is as sharp as possible. A particularly good method for sharpening is the high pass filter, but if you don’t want to install that plugin, you can use the less-effective Filters → Enhance → Unsharp Mask. If you use the high-pass filter, be sure to flatten the image afterward. Here is my photo after adjusting curves and sharpening:

3. Duplicate the background layer

On your layers palette, click the background layer and then click the duplicate layer button below the list of layers.

4. Apply a gaussian blur

Make sure you have the duplicated layer selected, then click Filters → Blur → Gaussian Blur. The photo I’m working with is 10 megapixels, so I’m going to set the blur radius to 50. Your mileage may vary. Just be sure to look at the preview window and choose a blur radius that you’re satisfied with. Here is what my photo looks like after adding the blur:

Gaussian blur

5. Add a layer mask

In the layers palette, right-click the blurry layer and choose Add Layer Mask. In the dialogue box that pops up, choose to initialize the mask to White (full opacity). For more explanation of layer masks, check out my tutorial: Everything you need to know about Gimp layer masks.

6. Apply a bi-linear gradient to the mask

From the toolbox, choose the Blend tool (I think it should be called the Gradient tool, but I digress). Set your foreground and background colors to black and white, respectively, by clicking the reset button right below it. In the tool settings, change the shape to Bi-linear.

Now place the cursor at the point in the center of the area you want to be in focus. Draw a vertical line to the edge of the area you want to remain blurred. To keep the line vertical, you can hold down the Ctrl key while you draw it.

This will create a gradient across the layer mask, with its darkest part in the center (where you started to draw) and fading to the lightest parts at both the top and bottom (where you finished drawing). It masks the blurred layer in those areas, making the sharper image on the layer beneath it visible.

For my photo, I have made just a very thin strip for my gradient. In this screenshot, you can see the black gradient on the layer mask thumbnail on the right.

Gradient applied to layer mask

A lot of tutorials skip the next step and go on to manipulating the colors, but that’s where they fail and this tutorial succeeds. To make a more realistic miniaturization of this image, the tower of the power plant needs to be in our depth of field, along with the steam coming out of the top. So we’ll take care of it in the next step.

7. Clear up elements that should be in focus

Look at your photo and determine if there are any items in it that are the same distance from the camera as the area you’ve got the focus set on. Perhaps a tree or some other vertical object which has its base in the area of focus. In my photo, I’ll get the tower and steam in focus by manipulating the layer mask to let the sharper image show through in those areas. Choose the Paintbrush tool and a soft round brush. Paint over the areas you want to get in focus. The layer mask changes as you paint. If you make a mistake, you can either press Ctrl-Z or you can change the foreground color to white and paint over the area you didn’t mean to paint over before. Here’s what the process looks like:

Painting on layer maskAnd here is what it looks like after painting is complete (I also painted a little bit on the top of the buildings to the right):

Finished painting on layer mask

8. Flatten the image and push the colors

Once you have the layer mask manipulated the way you want it, click on Image → Flatten image. Now you can make some adjustments to the colors. A plugin that I like for this step is Lasm’s LAB Ultra Vivid from FX Foundry, and turning down the opacity on the layer it creates to about 25 percent. But if you don’t want to download that, you can just turn up the saturation from the Colors menu. Here is my finished image with the colors tweaked:

Final image

So there you have it. I hope you find this tutorial helpful. Drop a comment below and show me your tilt-shift images.

Be Sociable, Share!
  • Tweet

Related posts:

  1. Tilt-Shift Simulation: The Movie
  2. The best way to make a vignette in Gimp
  3. Gimp Layer Mask
  4. Everything You Need to Know About Gimp Layer Masks
  5. Using High Pass Filter To Sharpen Images In Gimp
Gimp, Photography
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
← Free invitations to Google Music Beta
Three free books for learning Python →

9 Comments

  1. geoff's Gravatar geoff
    September 19, 2011 at 7:47 pm | Permalink

    im goint to try this

  2. Dave B's Gravatar Dave B
    January 5, 2012 at 1:57 pm | Permalink

    I just tried this and it worked like a charm!! Thanks for the tip!!

  3. Jen's Gravatar Jen
    May 2, 2012 at 10:53 pm | Permalink

    I had to thank you for the extremely easy tutorial you have posted here. I read alot of tutorials on how to preform this effect on my photos and yours was by far the most clearly written. Thank you so much for sharing!

  4. smili's Gravatar smili
    August 14, 2012 at 10:25 pm | Permalink

    Thanks for this tutorial. I picked a kindof lame low res photo to practice on, but I like the effect.
    Here’s links to before/after – not sure if I did the right thing with hue but I your tutorial was very helpful for me to understand what was going on.

    before: http://i154.photobucket.com/albums/s268/fartheststar/DSC04906.jpg
    after: http://i154.photobucket.com/albums/s268/fartheststar/tiltshift_test.jpg

  5. Daniel Veazey's Gravatar Daniel Veazey
    August 15, 2012 at 6:06 am | Permalink

    Hey, that looks great. The tiny little people walking around makes it all the more interesting. Thanks for leaving a comment.

  6. Cecil's Gravatar Cecil
    October 25, 2012 at 2:58 pm | Permalink

    Thanks for your great tutorials on Gimp, the have been a great help!

  7. Mark's Gravatar Mark
    November 26, 2012 at 10:08 am | Permalink

    Mr V,

    You have now got me hooked on TiltShift and Vingette effects in Gimp.

    Thanks for a really simple, but effective “How To” guide.

    Nice one

  8. Daniel Veazey's Gravatar Daniel Veazey
    November 26, 2012 at 10:12 am | Permalink

    Thanks, Mark.

  9. Ryan Kremer's Gravatar Ryan Kremer
    January 3, 2013 at 1:37 pm | Permalink

    Great info! Now I have a new hobby that I don’t have time for! Here’s one of mine: Falls Park in Sioux Falls, SD.

    Before
    http://db.tt/TTa4jLxn

    After
    http://db.tt/oLlf77cp

  1. How To Create Tilt Shift in GIMP | Jatem Web Services on December 14, 2012 at 8:07 am
  2. Worth Reading Tilt-Shift Tutorials to Improve Your Skills on December 30, 2012 at 2:43 am

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why you should leave a comment

1. I read all the comments.
2. I reply and answer every question.
3. I always click through to see the sites of commentators.
4. Because you can.
5. You become a participant instead of just an observer.

EvoLve theme by Theme4Press  •  Powered by WordPress Daniel Veazey
Things I find interesting