Skip to content

Commit

Permalink
Merge pull request #10921 from CloneWith/guides/files
Browse files Browse the repository at this point in the history
[ZH] Add `Cropping with backgrounds`
  • Loading branch information
Hiviexd authored Feb 26, 2024
2 parents 8518d56 + 022dd97 commit 1a1f3ae
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 0 deletions.
39 changes: 39 additions & 0 deletions wiki/Guides/Cropping_with_complex_backgrounds/zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 如何裁切复杂背景的图片

## 步骤 \#1

首先你要选一张图片。我会用下面这张图片,向你展示如何用 GIMP(其他程序应该也没多大问题)操作。这种方法需要用到自由选择工具(即套索工具)。

![教程图 1](img/CCB-1.png "教程图 1")

## 步骤 \#2

现在任选一个点,开始选择人物形象。这件事没那么难,只需要沿着人物轮廓线放置锚点就可以了。节点放得越密,剪裁出的图片越细致。

![教程图 2](img/CCB-2.png "教程图 2")

## 步骤 \#3

现在继续放置锚点,直到沿轮廓线完全选中了整个人物。先不管选进去的背景。

![教程图 3](img/CCB-3.png "教程图 3")

## 步骤 \#4

如果大体选择完毕,就可以处理与人物一并被选中的背景了。还是用自由选择工具,但改成“从当前选区中减去”,即移除选区。使用方法与一开始相同,这样取消选择头发与双腿等等之间的背景。

![教程图 4](img/CCB-4.png "教程图 4")

## 步骤 \#5

只剩下一件事:把人物形象剪切出来,粘贴到另一张图片中;或者反转选区 (CTRL + I)、删除背景。

![教程图 5](img/CCB-5.png "教程图 5")

## 结束

这就完成了。看起来不是那么好(尤其是头发末端),但只是因为我写这篇教程的时候没那么细致罢了。

可能会花点儿时间,但最终效果属实很不错。

![结果](img/CCB-6.png "结果")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions wiki/Guides/Cropping_with_simple_backgrounds/zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 如何裁切简单背景的图片

那么,我会展示一种快速去除单色背景的方法。和上一篇教程一样,我还是用 GIMP,图片如你所见。

![图片](img/CSB-1.png "图片")

## 步骤 \#1

选择模糊选择工具中的“合并到当前选区”模式(有助于一次选中多个部分),然后选中所有不想要的空白背景部分。

![教程图 1](img/CSB-2-ZH.png "教程图 1")

## 步骤 \#2

现在我们已经选中背景了,需要将选区扩大 1px。按 Del 键删除所选背景。

![教程图 2](img/CSB-3.png "教程图 2")

## 步骤 \#3

现在用颜色过滤器,将删除的背景变成透明。

![教程图 3](img/CSB-4.png "教程图 3")

## 步骤 \#4

遗憾的是,这样做之后仍会有一些黑色区域,大多在角度尖锐处。用“自由选区工具”选中这些难看的地方。按下 `Ctrl` + `F` 反复去除颜色。

![教程图 4](img/CSB-5.png "教程图 4")

## 结束

删除剩下的背景后,图片应该可以使用了。

这种方法只对单色背景有效,但你可以用它简单快速地去除背景。

![结果](img/CSB-6.png "结果")

0 comments on commit 1a1f3ae

Please sign in to comment.