annotate tools/image_rotate.xml @ 0:64374d852e36

Uploaded
author tomasz-bednarz
date Mon, 25 Nov 2013 21:32:12 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
1 <tool id="image_rotate" name="Image Rotate" version="1.0.0">
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
2
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
3 <description>Rotate the image.</description>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
4
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
5 <command interpreter="python" >
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
6 image_do.py -i $input -o $output -c "rotate $rotDeg $expand" -e "$input.ext"
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
7 </command>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
8
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
9 <inputs>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
10 <param name="input" type="data" format="png,jpg,tif,zip" label="Input image" help="Original RGB or grayscale image." />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
11 <param name="rotDeg" size="5" type="integer" value="0" label="Degree" help="Degree of rotation" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
12 <param name="expand" type="boolean" value="True" checked="yes" truevalue="1" falsevalue="0" label="Expand?" help="Expand image size when rotated (true) or keep exisiting size (false)." />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
13 </inputs>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
14
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
15 <outputs>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
16 <data format="input" name="output" metadata_source="input" label="Rotated ${input.display_name}"/>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
17 </outputs>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
18
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
19 <help>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
20 Rotates an image the given number of degrees counter clockwise around its centre.
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
21 </help>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
22
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
23 <tests>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
24 <test>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
25 <param name="input" value="sydney.jpg" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
26 <param name="rotDeg" value="30" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
27 <param name="expand" value="True" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
28 <output name="output" file="sydney-rotated.jpg" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
29 </test>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
30 </tests>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
31
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
32 </tool>