如何从Photoshop中的照片中删除Photobombers和其他对象

如何从Photoshop中的照片中删除Photobombers和其他对象

You set up the tripod, line up the shot, and get ready to take the best picture of your life. You stare through the viewfinder and as you press the shutter release a random passerby leaps into the frame. You’ve been photobombed.

您设置好三脚架,对准镜头,然后准备拍摄生活中的最佳照片。 您凝视取景器,并在按下快门时释放一个随机的行人进入画面。 你被炸弹了。

如何从Photoshop中的照片中删除Photobombers和其他对象

Sometimes you’ll notice right away and be able to take another shot, but often, you won’t see the image intruder until you get home. Rather than trash an otherwise awesome photo, lets look at how you can use Photoshop to get rid of photobombers and other unwanted background objects.

有时您会立即注意到并能够进行另一次拍摄,但是通常,直到您回家,您才看不到图像入侵者。 让我们看看如何使用Photoshop消除照片轰炸机和其他不需要的背景对象,而不是丢弃本来很棒的照片。

简单方法:内容感知填充 (The Easy Way: Content-Aware Fill)

Open the image you want to edit in Photoshop. You don’t want to mess up the original pixels, so duplicate the background to a new layer with the keyboard shortcut Control+J (or Command+J for Mac users).

在Photoshop中打开要编辑的图像。 您不希望弄乱原始像素,因此可以使用键盘快捷键Control + J(对于Mac用户为Command + J)将背景复制到新图层。

Then, grab the Quick Select Tool from the Tools Panel or with the keyboard shortcut W. If the Magic Wand Tool is selected instead, press Shift+W to switch to it. The Quick Select Tool selects all the similar, nearby pixels to the area you click.

然后,从“工具”面板或键盘快捷键W中抓住“快速选择工具”。如果相反选择了“魔术棒”工具,请按Shift + W切换到该工具。 快速选择工具会选择与您单击的区域相似的所有附近像素。

如何从Photoshop中的照片中删除Photobombers和其他对象

Resize the tool tip with the [ and ] keys until it is a little smaller than the object or person you want to remove. Click and drag around the target until it’s selected.

使用[和]键调整工具提示的大小,直到它比要删除的对象或人小一点。 单击并拖动目标,直到选中它。

如何从Photoshop中的照片中删除Photobombers和其他对象

If the Quick Select Tool accidentally selects something you don’t want selected, hold down Option on a PC or Alt on a Mac and drag over the unwanted area. This will subtract it from the selection.

如果快速选择工具意外地选择了您不想选择的内容,请在PC上按住Option键,在Mac上按住Alt键,然后在不需要的区域上拖动。 这将从选择中减去它。

如何从Photoshop中的照片中删除Photobombers和其他对象

If you want to add an extra area to the selection, hold down the Shift key and click on the area you want to add.

如果要向选择区域添加额外的区域,请按住Shift键,然后单击要添加的区域。

如何从Photoshop中的照片中删除Photobombers和其他对象

The Quick Select Tool’s selections are far from perfect, so to make sure the whole item to be removed is fully selected, go to Select > Modify > Expand and enter a value of around 5 pixels. This will expand the selection beyond the edges the Quick Select Tool picked up.

快速选择工具的选择远非完美,因此要确保完全删除要删除的整个项目,请转到“选择”>“修改”>“展开”,然后输入大约5像素的值。 这会将选择范围扩展到快速选择工具所拾取的边缘之外。

如何从Photoshop中的照片中删除Photobombers和其他对象

Next, go to Edit > Fill and select Content-Aware from the Contents dropdown. Press OK and Photoshop will analyse the surrounding area and come up with a best-guess fill.

接下来,转到“编辑”>“填充”,然后从“内容”下拉列表中选择“内容感知”。 按OK,Photoshop将分析周围的区域并提出最佳猜测。

如何从Photoshop中的照片中删除Photobombers和其他对象

There’s an element of randomness to the Content-Aware Fill tool. If you aren’t happy with the first result, press Control+Z (or Command+Z on a Mac) to undo it, and try again. It might take three or four tries, but Photoshop will normally come up with a decent fill.

内容感知填充工具具有随机性。 如果您对第一个结果不满意,请按Control + Z(在Mac上为Command + Z)将其撤消,然后重试。 可能需要三到四次尝试,但是Photoshop通常会提供不错的填充效果。

如何从Photoshop中的照片中删除Photobombers和其他对象

If there are some areas that look good and others that don’t, grab the Quick Select Tool again and only target the bad areas. You can repeat this as many times as needed. The image below, for example, took about 15 Content-Aware Fills to get to a point I liked.

如果有些区域看起来不错而其他区域则不好,请再次抓住快速选择工具,仅将不良区域作为目标。 您可以根据需要重复多次。 例如,下面的图像用了大约15个内容感知填充来达到我喜欢的程度。

如何从Photoshop中的照片中删除Photobombers和其他对象

Photoshop’s automatic removal tools have got a lot more accurate since they were first introduced. While they’ll never be as good as going in and doing things slowly by hand, they can do a reasonable job of cleaning up most images. They work best on organic and random backgrounds; complex repeating patterns and straight lines can present problems. Even still, you can get away with a lot for social media posts.

自从首次引入以来,Photoshop的自动删除工具已变得更加准确。 尽管它们永远不会像手动进入并缓慢执行操作那样出色,但是他们可以合理地清理大多数图像。 它们在自然背景和随机背景下效果最佳; 复杂的重复图案和直线会带来问题。 即使如此,您也可以从社交媒体帖子中脱身。

高级方式:克隆邮票 (The Advanced Way: Clone Stamp)

The Content-Aware approach is great, but it’s no where near as good as doing things yourself with the Clone Stamp. If you really want to remove a photobomber or background element so that there’s almost no trace, this is the best way to do it.

Content-Aware方法很棒,但与使用“克隆图章”自己做事一样远。 如果您确实要删除照相底片或背景元素,从而几乎没有痕迹,那么这是最好的方法。

You’ll need a working knowledge of layers and layer masks to follow along, so check out our article on the subject if you’re not already familiar with them.

您将需要掌握有关图层和图层蒙版的实用知识,因此,如果您还不熟悉它们,请查看我们关于该主题的文章

Open the image you want to edit in Photoshop. Create a new layer and select the Clone Stamp from the Tools Panel—the keyboard shortcut is S.

在Photoshop中打开要编辑的图像。 创建一个新层,然后从“工具面板”中选择“克隆图章”,键盘快捷键为S。

如何从Photoshop中的照片中删除Photobombers和其他对象

Make sure that Aligned is checked and that Sample is set to Current & Below.

确保选中“对齐”,并将“样本”设置为“当前及以下”。

如何从Photoshop中的照片中删除Photobombers和其他对象

The Clone Stamp takes pixels from one area of an image (the “Clone” part of its name) and paints them to another (the “Stamp” part of it). It works like the Brush tool, but for copying pixels. With it, you can use existing pixels in the image to cover over anything you want to remove.

“克隆印章”从图像的一个区域(其名称的“克隆”部分)获取像素,并将其绘制到另一区域(图像的“印记”部分)。 它的作用类似于“画笔”工具,但用于复制像素。 借助它,您可以使用图像中的现有像素覆盖要删除的所有内容。

Find an area of your image that looks like it will cover up the photobomber. Hold down Alt (or Option on a Mac) and click on it. This sets the Clone Stamp’s sample point.

找到您的图像区域,看起来像它会掩盖照片炸弹。 按住Alt键(在Mac上为Option键),然后单击它。 这将设置“复制图章”的采样点。

如何从Photoshop中的照片中删除Photobombers和其他对象

Paint the sampled pixels on the new layer until you have a good sized patch to work with.

在新图层上绘制采样像素,直到可以使用合适大小的补丁为止。

如何从Photoshop中的照片中删除Photobombers和其他对象

Select the Move Tool (press V on your keyboard) and reposition the patch over the area you want to cover. It doesn’t matter how rough it looks at this point.

选择“移动工具”(按键盘上的V),然后将色块重新放置在要覆盖的区域上。 在这一点上看起来有多粗糙都没关系。

如何从Photoshop中的照片中删除Photobombers和其他对象

Add a black mask to the layer by holding down Alt and clicking on the Add Layer Mask button. This will hide the patch.

按住Alt并单击“添加图层蒙版”按钮,将黑色蒙版添加到图层。 这将隐藏补丁。

如何从Photoshop中的照片中删除Photobombers和其他对象

Next, select the Brush tool. Choose a Soft Round brush, with a Flow of about 40%.

接下来,选择“画笔”工具。 选择“软圆形”笔刷,其流量约为40%。

如何从Photoshop中的照片中删除Photobombers和其他对象

Resize the tooltip with [ and ] and paint white over the person or object you’re trying to remove. This will reveal the patch but only in the areas where you want it. Tweak the mask using the Brush tool so that the original image and patch blend nicely.

使用[和]调整工具提示的大小,然后在要删除的人或物体上涂成白色。 这将显示补丁,但仅在您需要的区域显示。 使用“画笔”工具调整遮罩,以便原始图像和补丁很好地融合在一起。

如何从Photoshop中的照片中删除Photobombers和其他对象

To fully remove someone or something, you’ll normally need to use a couple of patches. It took me four to remove the gnome photobomber. You can see a quick time lapse of how it developed below.

要完全删除某人或某物,通常需要使用几个补丁。 我花了四个时间才能取出gnome Photobomber。 您可以在下面快速了解其发展过程。

如何从Photoshop中的照片中删除Photobombers和其他对象

Take your time, work your way through the process, and you’ll be able to remove almost anything.

花费时间,逐步完成此过程,您将几乎可以删除所有内容。

如何从Photoshop中的照片中删除Photobombers和其他对象

Below is a comparison of the two removal methods. While Content-Aware does a good job, it’s obvious that the Clone Stamp does much better at keeping the scaffolding looking natural.

以下是两种清除方法的比较。 虽然Content-Aware表现出色,但很明显,Clone Stamp在使支架看起来自然的方面做得更好。

如何从Photoshop中的照片中删除Photobombers和其他对象


Removing photobombers and other things you don’t want in the background of your photos is one of the most common tasks people want to do in Photoshop. Automated methods will make a decent attempt but, if you really want someone gone, it’s still best to go in by hand with the Clone Stamp.

人们要在Photoshop中执行的最常见的任务之一是,删除照片背景中的照片轰炸机和其他不需要的东西。 自动化方法会做出不错的尝试,但是,如果您确实希望某人离开,最好还是手动使用“克隆邮票”。

Image Credits: HarshLight and Matthew Hurst.

图片来源: HarshLightMatthew Hurst

翻译自: https://www.howtogeek.com/howto/43621/how-to-remove-people-and-objects-from-photographs-in-photoshop/