comparison tools/smooth.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_smooth" name="Filter - Smooth" version="1.0.2">
2
3 <description>Apply a smooth filter on the image.</description>
4
5 <command interpreter="python" >
6 #if (str($input.ext) == 'jpg'):
7 pil_filter.py $input $output smooth jpeg
8 #else:
9 pil_filter.py $input $output smooth ${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="Smooth filter on ${input.display_name}"/>
19 </outputs>
20
21 <help>
22 Apply a smooth filter on the image (soften the image).
23 </help>
24
25 <tests>
26 <test>
27 <param name="input" value="images/sydney.jpg" />
28 <output name="output" file="images/sydney-smoth.jpg" />
29 </test>
30 </tests>
31
32 </tool>