annotate tools/invert.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_invert" name="Filter - Invert" version="1.0.2">
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
2
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
3 <description>Apply an invert filter on the 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 invert jpeg
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
8 #else:
a44112280169 Uploaded
tomasz-bednarz
parents:
diff changeset
9 pil_filter.py $input $output invert ${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="Invert 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 Invert the image (colours).
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-invert.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>