blob: c3968a137afe6afc0a5ddc31430d40a1c9c2a0a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
|
<sect1 id="tutorial-select-layer">
<title>A Small selections and layers tutorial</title>
<!-- Does someone know a better way to do this? -->
<screenshot>
<screeninfo>The starting image</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-sample.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The starting image</phrase>
</textobject>
<caption><para>The starting image</para></caption>
</mediaobject>
</screenshot>
<para>
The image above is the image we will work with. Start chalk with this
image (in the documentation folder
<filename>$<envar>TDEDIR</envar>/share/doc/tde/HTML/en/chalk/tutorial-select-layer-sample.png</filename>)
and save it to your Home folder (by choosing <guilabel>Save Image As...</guilabel>).
Then open it in &chalk; — your screen will look a bit like this (we have
zoomed in):
</para>
<screenshot>
<screeninfo>Chalk with the starting image</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-1.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The starting image</phrase>
</textobject>
<caption><para>The starting image</para></caption>
</mediaobject>
</screenshot>
<para>
Now try to select the outline of the head with the <guilabel>Select Outline</guilabel> tool:
</para>
<screenshot>
<screeninfo>The <guilabel>Select Outline</guilabel> tool</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-2.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The <guilabel>Select Outline</guilabel> tool</phrase>
</textobject>
<caption><para>The <guilabel>Select Outline</guilabel> tool</para></caption>
</mediaobject>
</screenshot>
<para>
After you select it, it should look a bit like this picture:
</para>
<screenshot>
<screeninfo>The picture after selecting the head</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-3.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The picture after selecting the head</phrase>
</textobject>
<caption><para>The picture after selecting the head</para></caption>
</mediaobject>
</screenshot>
<para>
If you accidently select too much, you can cut that part easily off by switching the tool to <guilabel>Subtract</guilabel> mode:
</para>
<screenshot>
<screeninfo>The <guilabel>Subtract</guilabel> mode</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-4.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The <guilabel>Subtract</guilabel> mode</phrase>
</textobject>
<caption><para>The <guilabel>Subtract</guilabel> mode</para></caption>
</mediaobject>
</screenshot>
<para>
Now it's time to make the edges of the selection a bit fuzzy. This can be done by applying <guilabel>Feather</guilabel> to the selection.
</para>
<screenshot>
<screeninfo><guilabel>Feather</guilabel> selection</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-5.png" format="PNG" />
</imageobject>
<textobject>
<phrase><guilabel>Feather</guilabel> selection</phrase>
</textobject>
<caption><para><guilabel>Feather</guilabel> selection</para></caption>
</mediaobject>
</screenshot>
<para>
Now cut the selection, using
<menuchoice><guimenu>Edit</guimenu><guimenuitem>Cut</guimenuitem></menuchoice>.
Delete the current layer with
<menuchoice><guimenu>Layer</guimenu><guimenuitem>Remove
Layer</guimenuitem></menuchoice>. Paste your selection, with
<menuchoice><guimenu>Edit</guimenu><guimenuitem>Paste</guimenuitem></menuchoice>.
Now we give ourselves a bit more room to work in by resizing the image a bit.
Use the <menuchoice><guimenu>Image</guimenu><guimenuitem>Change Image
Size...</guimenuitem></menuchoice> dialog for this.
</para>
<screenshot>
<screeninfo>The <guilabel>Image Size</guilabel> dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-6.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The <guilabel>Image Size</guilabel> dialog</phrase>
</textobject>
<caption><para>The <guilabel>Image Size</guilabel> dialog</para></caption>
</mediaobject>
</screenshot>
<para>
Add a new layer, and place it below the old layer. You do this by selecting
the new layer in the layerbox, and then pressing the little 'down' arrow at the bottom.
Now we are going to select the area around the head with a contiguous select
(the tool has a selection-with-bucketfill icon at the border).
</para>
<screenshot>
<screeninfo>The <guilabel>Select Contiguous</guilabel> tool</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-7.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The <guilabel>Select Contiguous</guilabel> tool</phrase>
</textobject>
<caption><para>The <guilabel>Select Contiguous</guilabel> tool</para></caption>
</mediaobject>
</screenshot>
<para>
Make sure to select <guilabel>Sample merged</guilabel> in the tool options:
</para>
<screenshot>
<screeninfo>The <guilabel>Sample merged</guilabel> option</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-8.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The <guilabel>Sample merged</guilabel> option</phrase>
</textobject>
<caption><para>The <guilabel>Sample merged</guilabel> option</para></caption>
</mediaobject>
</screenshot>
<para>
Feather the selection again, and invert it.
Select the <guilabel>Contiguous Fill</guilabel> tool (this is a different tool than
the <guilabel>Contiguous Select</guilabel> tool) and use it on the layer.
</para>
<screenshot>
<screeninfo>The <guilabel>Contiguous Fill</guilabel> tool</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-9.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The <guilabel>Contiguous Fill</guilabel> tool</phrase>
</textobject>
<caption><para>The <guilabel>Contiguous Fill</guilabel> tool</para></caption>
</mediaobject>
</screenshot>
<para>
Deselect with <menuchoice><guimenu>Select</guimenu><guimenuitem>Deselect</guimenuitem></menuchoice>.
You'll notice some artefacts of the feathering at the sides. You can select them easily with a rectangular selection and then cut them.
</para>
<screenshot>
<screeninfo>The <guilabel>Select Rectangular</guilabel> tool</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-10.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The <guilabel>Select Rectangular</guilabel> tool</phrase>
</textobject>
<caption><para>The <guilabel>Select Rectangular</guilabel> tool</para></caption>
</mediaobject>
</screenshot>
<para>
Move the shadow layer a bit down and to the right to make it look nice.
</para>
<screenshot>
<screeninfo>Moving the shadow layer</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-11.png" format="PNG" />
</imageobject>
<textobject>
<phrase>Moving the shadow layer</phrase>
</textobject>
<caption><para>Moving the shadow layer</para></caption>
</mediaobject>
</screenshot>
<para>
Now you can use the <guilabel>Crop</guilabel> tool to make the image better fit around the head.
</para>
<screenshot>
<screeninfo>The <guilabel>Crop</guilabel> tool</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-12.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The <guilabel>Crop</guilabel> tool</phrase>
</textobject>
<caption><para>The <guilabel>Crop</guilabel> tool</para></caption>
</mediaobject>
</screenshot>
<para>
Save the image, and you're done :-)
</para>
<screenshot>
<screeninfo>The resulting image</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tutorial-select-layer-13.png" format="PNG" />
</imageobject>
<textobject>
<phrase>The resulting image</phrase>
</textobject>
<caption><para>The resulting image</para></caption>
</mediaobject>
</screenshot>
<para>
Thanks go to Bart Coppens for providing this tutorial. The original is available at <ulink url="http://www.bartcoppens.be/chalk/hackergotchi.html">http://www.bartcoppens.be/chalk/hackergotchi.html</ulink>.
</para>
</sect1>
|