• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

How do I apply a 'gradient' blur to the background of an image

Advocate ,
Dec 20, 2021 Dec 20, 2021

Copy link to clipboard

Copied

My attempts at this are disappointing. I need a step by step here as this will be something new to me. I'm aware that I will need to duplicate the layer and apply a gaussian blur to the back layer, but how to apply or make a mask to keep the subject separated from the background so the subject is not blurred and also applying the gradient to the background image to 'show through' and become like a 'soft' depth of field, gradually becoming sharp with the foreground subject. Hope this makes sense, I'm sure Photoshop can accomplish this, but need expert advice so I can do this the most practical effective way. I want a nice result to become studio quality outdoor portraits. 

TOPICS
macOS

Views

4.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 21, 2021 Dec 21, 2021

We'd be able to give you better advice if we could see the image you are working with.  That would make a different to the best way to make the selection.  Rather than using Gaussian Blur, you should try the lens blur options, as they can be made to stop the subject bleeding out into the blurred background.

 

In this example I simply use Select Subject to select the person, and Select & Mask to create a new layer with layer mask.  I'm just keeping that in reserve though.  I can Ctrl click the ma

...

Votes

Translate

Translate
Adobe
Community Expert ,
Dec 21, 2021 Dec 21, 2021

Copy link to clipboard

Copied

We'd be able to give you better advice if we could see the image you are working with.  That would make a different to the best way to make the selection.  Rather than using Gaussian Blur, you should try the lens blur options, as they can be made to stop the subject bleeding out into the blurred background.

 

In this example I simply use Select Subject to select the person, and Select & Mask to create a new layer with layer mask.  I'm just keeping that in reserve though.  I can Ctrl click the mask to reload the selection.  I've inverted the selection, and opened Gaussian blur with a value of 10.  Can you see the halo where the man in the background is bleeding through to the blurred area?  You don't want that,

image.png

 

If you use Lens Blur, then you don't get that bleed

image.png

 

What I have done here is copy the selection of the subject to a new layer (Ctrl J)

The original unblurred image as at the bottom of the layer stack.

The layer with the blurred background is in between them, and has a layer mask.

A white to black gradient runs down that mask.  Where the mask is white it shows the blurred layer, and where the maskl is black it reveals the unblurred layer beneath it.

You can experiment with the position of the gradient.  In fact, if you unlink the mask by clicking on the chain icon to the left of the mask, you can then move the mask independantly of the image.

image.png

 

Does this help.  If not, a screen shot of the image you are working with would help us to help you.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 21, 2021 Dec 21, 2021

Copy link to clipboard

Copied

Trevor.Dennis, Thank you so very much, you have put the time in to make this a treasure for anyone who wants to do a 'realistic' and well performed masterpiece as a finished product. I'm posting the image that started all of this for me; Its just a cropped portion of an inspiring iPhone photo that needs proper treatment. I have more advanced cameras and lenses and those will be used for future photos which will be ions better for image quality. But it all starts here, the reason for the question. I could see that 'background blur' might be enough for an image that has a background that is in the distance, but if you have foreground, like the pavement you show or the lawn in my image, then you need a specialized handling as you have shown so well. Thank You with endless thanks as I will be studying and making what you are teaching here a part of my life with photography now. Best, Ken

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2021 Dec 21, 2021

Copy link to clipboard

Copied

Ken, the iPhone makes a stab at limited depth of field with its 'Portrait' mode, but in my experience it introduces the same halo bleeding out into the background as Gaussian Blur. Smart phones take amazing pictures nowadays, but still fall well short of what a decent DSLR can acheive in some situations (like shallow DoF).  They more than make up for it in situations like low light.  My iPhone 12 Pro MAX seems to be able to record an image in near total darkness, for instance.  Emma is beautiful btw.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 30, 2021 Dec 30, 2021

Copy link to clipboard

Copied

Attaching file I am at 'mid-point' working on but getting nowhere yet...
Also, don't know how to make the layer with the gradient... Need help please...


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 30, 2021 Dec 30, 2021

Copy link to clipboard

Copied

I must come back and ask for basic help. My subject and the background are too confusing for Photoshop to make a selection and it tells me so. So, I made a path around my subject to carefully select and then made a slection. When I go to Select & Mask it goes into a menu but when I hit okay nothing is done. The subject is selected with a path around it, I tried reversing that and still no mask is made. I'm on the right track with this as you have laid out so clearly, but for some reason I'm not getting a new layer with layer mask. Can you help me with this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2021 Dec 30, 2021

Copy link to clipboard

Copied

There is very new feature called "Depth Blur Neural Filter", it will blur the background automatically using AI, but you need to be online to use it and have the latest version of Photoshop.

This YouTube tutorial will show you how: https://m.youtube.com/watch?v=YNXQuPSDUv4

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 30, 2021 Dec 30, 2021

Copy link to clipboard

Copied

Thanks Derek, and yes I have the latest version and am online, but to go back to the original post of what I am trying to achieve is a gradient blur. Trevor.Dennis laid out the plan very well for this above and now I was hoping he could come back to help as I am having trouble getting the intermediate steps working. That's the key with Photoshop... once you know how to do something then it's a cinch, but to break into new territory, as this is for me, can leave you slid off the road into the ditch... right where I am right now.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2021 Dec 30, 2021

Copy link to clipboard

Copied

In my experience, Gaussian Blur (at least at higher values) spreads the background pixels including the subject into a halo. You could explore mixing different blur methods together, some may "spread" less than others.

 

To work around this halo from large Gaussian Blur values:

 

1) Original flattened image, only the Background layer

2) Dupe the Background into a new layer in order to preserve the original

3) On the duped layer, select the subject

4) CMD/CTRL J to copy the selection to a new layer

5) With the selection active, go back to the duped background layer, use content aware fill and or healing or clone stamp to "fill in" the selection of the subject with background content. This way when you blur this layer, the halo is from similar background content and not the subject (the subject is not there anymore). One may not need to perfectly remove the subject as the blur will hide inaccuracies. EDIT: Very rough picture below to illustrate...

 

You should probably make the duped background a smart object layer so that the blur filter will be a smart filter.

 

This is just a brief overview, hope this helps.

 

layers.jpg

 

Yes, select subject missed the paw and tail hair whispies, I'm guessing that the neural network was trained on a dataset containing people more so than dogs.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 30, 2021 Dec 30, 2021

Copy link to clipboard

Copied

Yes, the bleeding of Gaussian Blur was pointed out early by Trevor.Dennis in his answer above. I was. hoping he could help me with some of the intricasy of getting the steps he mentions to work like he showed so well in his examples above. If I could get the steps to work as he points out I would be home free with this. Thanks for your reply here as all of this is educational to me.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2021 Dec 30, 2021

Copy link to clipboard

Copied

I'll review Trevor's steps, I'm guessing that the only thing I didn't go into was applying a layer mask and using a black to white gradient tool to the mask.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 30, 2021 Dec 30, 2021

Copy link to clipboard

Copied

I feel like a blind man... but yes, Stephen_A_Marsh, a little thing like that threw me for a loop. Right now, I'm making a mess and finally got a layer mask with a blank mask and applied a black to white gradient. With the layers lined up like Trevor showed, it works, the sharp layer shows in the black areas and the blurred area gradates and shows in the white areas of the gradient mask. Whew, What a way to go into the new year... it's always good to see more of what Photoshop sees. Thank you also for your help here Stephen. I think I'm on the road to getting this. Some practice will eventually have me being able to work confidently with this. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2021 Dec 30, 2021

Copy link to clipboard

Copied

LATEST

Glad to be of some small assistance Ken, do it in camera and I think that you'll be a lot happier! I know, a smart phone is more accessible than a DSLR, so better to capture the moment with whatever you have. Today, everbody is a "photographer", but there are so few photographers out there...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines