comparison tools/emboss.xml @ 2:a44112280169

Uploaded
author tomasz-bednarz
date Mon, 25 Nov 2013 21:12:30 -0500
parents
children
comparison
equal deleted inserted replaced
1:795060eb6643 2:a44112280169
1 <tool id="filter_emboss" name="Filter - Emboss" version="1.0.2">
2
3 <description>Apply an emboss filter on image.</description>
4
5 <command interpreter="python" >
6 #if (str($input.ext) == 'jpg'):
7 pil_filter.py $input $output emboss jpeg
8 #else:
9 pil_filter.py $input $output emboss ${input.ext}
10 #end if
11 </command>
12
13 <inputs>
14 <param name="input" type="data" format="png,jpg,tif,zip" label="Input image" help="Original RGB or grayscale image." />
15 </inputs>
16
17 <outputs>
18 <data format="input" name="output" metadata_source="input" label="Emboss on ${input.display_name}" />
19 </outputs>
20
21 <help>
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.
23 </help>
24
25 <tests>
26 <test>
27 <param name="input" value="images/sydney.jpg" />
28 <output name="output" file="images/sydney-emboss.jpg" />
29 </test>
30 </tests>
31
32 </tool>