annotate tools/emboss.xml @ 3:952a37c4ffc8 default tip

contact added
author tomasz-bednarz
date Tue, 26 Nov 2013 13:17:03 +1100
parents a44112280169
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
1 <tool id="filter_emboss" name="Filter - Emboss" version="1.0.2">
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
2
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
3 <description>Apply an emboss filter on image.</description>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
4
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
5 <command interpreter="python" >
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
6 #if (str($input.ext) == 'jpg'):
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
7 pil_filter.py $input $output emboss jpeg
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
8 #else:
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
9 pil_filter.py $input $output emboss ${input.ext}
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
10 #end if
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
11 </command>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
12
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
13 <inputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
14 <param name="input" type="data" format="png,jpg,tif,zip" label="Input image" help="Original RGB or grayscale image." />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
15 </inputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
16
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
17 <outputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
18 <data format="input" name="output" metadata_source="input" label="Emboss on ${input.display_name}" />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
19 </outputs>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
20
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
21 <help>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
22 An emboss filter gives a 3D shadow effect to the image, the result is very useful for a bumpmap of the image. It can be achieved by taking a pixel on one side of the center, and subtracting one of the other side from it. Pixels can get either a positive or a negative result.
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
23 </help>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
24
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
25 <tests>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
26 <test>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
27 <param name="input" value="images/sydney.jpg" />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
28 <output name="output" file="images/sydney-emboss.jpg" />
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
29 </test>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
30 </tests>
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
31
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
32 </tool>