How to Simulate Shallow Depth of Field in Gimp

Опубликовал Admin
13-09-2020, 19:40
177
0
With today's little point and shoot digital cameras, there is no problem with having good depth of field. It's when you want to limit it that you have issues. They are designed to provide that view. However, with Gimp, you can get around that.

Steps

  1. Open your image in Gimp.
  2. Create a layer mask of your photo.
    1. Separate the image into RGB channels. Click on Colors >> Components >> Decompose.
    2. Examine each resultant image to see which one provides the greatest contrast. For this particular picture, the blue channel provides the greatest contract. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/e\/e7\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet2.jpg\/v4-460px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet2.jpg","bigUrl":"\/images\/thumb\/e\/e7\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet2.jpg\/aid676218-v4-728px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet2.jpg","smallWidth":460,"smallHeight":334,"bigWidth":"728","bigHeight":"529","licensing":"<div class=\"mw-parser-output\"><p>License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/\">Creative Commons<\/a><br>\n<\/p><p><br \/>\n<\/p><\/div>"}
    3. Delete the two layers that will not be used. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/e\/e6\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet3.jpg\/v4-460px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet3.jpg","bigUrl":"\/images\/thumb\/e\/e6\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet3.jpg\/aid676218-v4-728px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet3.jpg","smallWidth":460,"smallHeight":334,"bigWidth":"728","bigHeight":"529","licensing":"<div class=\"mw-parser-output\"><p>License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/\">Creative Commons<\/a><br>\n<\/p><p><br \/>\n<\/p><\/div>"}
    4. Lessen the amount of required work by tracing around the desired part of the image by drawing around it with the lasso tool. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/d\/dd\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet4.jpg\/v4-460px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet4.jpg","bigUrl":"\/images\/thumb\/d\/dd\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet4.jpg\/aid676218-v4-728px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-2Bullet4.jpg","smallWidth":460,"smallHeight":334,"bigWidth":"728","bigHeight":"529","licensing":"<div class=\"mw-parser-output\"><p>License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/\">Creative Commons<\/a><br>\n<\/p><p><br \/>\n<\/p><\/div>"}
    5. Invert the selection (CTRL I) and then fill in the area with black.
      • Be sure that black is the foreground color, that FG Color Fill and Fill Whole Selection are selected. Your image should look like this.
  3. Force the outline of your chosen subject to white.
    1. Right click on the image and choose Colors >> Threshold.
    2. Click in the histogram and drag it towards the right. Watch as the image turns to black and white. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/8\/80\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet2.jpg\/v4-460px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet2.jpg","bigUrl":"\/images\/thumb\/8\/80\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet2.jpg\/aid676218-v4-728px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet2.jpg","smallWidth":460,"smallHeight":334,"bigWidth":"728","bigHeight":"529","licensing":"<div class=\"mw-parser-output\"><p>License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/\">Creative Commons<\/a><br>\n<\/p><p><br \/>\n<\/p><\/div>"}
    3. Move the selections/controls around until you find something that looks the best to you. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/b\/bb\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet3.jpg\/v4-460px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet3.jpg","bigUrl":"\/images\/thumb\/b\/bb\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet3.jpg\/aid676218-v4-728px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet3.jpg","smallWidth":460,"smallHeight":334,"bigWidth":"728","bigHeight":"529","licensing":"<div class=\"mw-parser-output\"><p>License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/\">Creative Commons<\/a><br>\n<\/p><p><br \/>\n<\/p><\/div>"}
    4. Click OK. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/0\/0b\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet4.jpg\/v4-460px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet4.jpg","bigUrl":"\/images\/thumb\/0\/0b\/Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet4.jpg\/aid676218-v4-728px-Simulate-Shallow-Depth-of-Field-in-Gimp-Step-3Bullet4.jpg","smallWidth":460,"smallHeight":334,"bigWidth":"728","bigHeight":"529","licensing":"<div class=\"mw-parser-output\"><p>License: <a target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"external text\" href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/\">Creative Commons<\/a><br>\n<\/p><p><br \/>\n<\/p><\/div>"}
  4. Fix any last problems that you see with the image (this can get tiresome, depending on the contrast that you have gotten so far.).
  5. Composite the mask and the image.
  6. Create a new layer. If you don't see the Layers dialog box, click on Windows > Recently Closed Docks and reopen it.
  7. Name the layer something definitive, as in "Mask Guide".
  8. Make sure that your original image window is open.
  9. Select that image, and copy it. (CTRL A and CTRL C).
  10. Go back to the mask image and paste into the new layer.
    • It will paste as a grayscale image.
  11. Anchor the pasted image and reduce the opacity of the Mask Guide to about 70%.
    • By doing this, you will be able to view your image and the mask simultaneously.
  12. Select the background layer in the mask image.
    • The mask image is simply a guide.
  13. Select a brush (probably small and a bit fuzzy) from the Brushes Dialog (CTRL B).
  14. Choose the paint tool and start painting the mask.
  15. Be sure that the subject is white so that anything that is not the subject would be black.
  16. Be prepared to change your brushes. Also, you will need to move around the image refining it.
    • Periodically, turn off the visibility of your Mask Guide (click on the "eye") to view your progress.
  17. Save the mask as an XCF file so that you will have the mask if you need it again.
  18. Do a Gaussian Blur (Filters >> Blur >> Gaussian Blur)) of about five pixels.
  19. Then invert the mask (Colors >> Invert).
  20. Select the original image in the drop down box. It will be one of the layers in the Layers dialog. Then duplicate it.
  21. Double click on the top layer. Rename it "Blurred".
  22. In the original image, right click and select Filters >> Blur >> Gaussian Blur. Experiment with the various values to get your' depths of field. What you like.
  23. Go back to the Layers dialog and right-click on the "Blurred" layer; select "Add Layer Mask".
  24. In the Add Mask Options dialog make sure White (Full Opacity) is selected.
  25. Go to the mask image window and Select All and Copy (Ctrl+A then Ctrl+C). In the original image window, Paste (Ctrl+V). This should paste the inverted mask into the layer mask.
  26. In the Layers dialog, click on the anchor button to anchor the pasted image.
    • If done correctly, your subject should be sharp and the background blurry.

Tips

Submit a TipAll tip submissions are carefully reviewed before being publishedSubmitThanks for submitting a tip for review!
Теги:
Information
Users of Guests are not allowed to comment this publication.