comparison tools/image_rotate.xml @ 0:64374d852e36

Uploaded
author tomasz-bednarz
date Mon, 25 Nov 2013 21:32:12 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:64374d852e36
1 <tool id="image_rotate" name="Image Rotate" version="1.0.0">
2
3 <description>Rotate the image.</description>
4
5 <command interpreter="python" >
6 image_do.py -i $input -o $output -c "rotate $rotDeg $expand" -e "$input.ext"
7 </command>
8
9 <inputs>
10 <param name="input" type="data" format="png,jpg,tif,zip" label="Input image" help="Original RGB or grayscale image." />
11 <param name="rotDeg" size="5" type="integer" value="0" label="Degree" help="Degree of rotation" />
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)." />
13 </inputs>
14
15 <outputs>
16 <data format="input" name="output" metadata_source="input" label="Rotated ${input.display_name}"/>
17 </outputs>
18
19 <help>
20 Rotates an image the given number of degrees counter clockwise around its centre.
21 </help>
22
23 <tests>
24 <test>
25 <param name="input" value="sydney.jpg" />
26 <param name="rotDeg" value="30" />
27 <param name="expand" value="True" />
28 <output name="output" file="sydney-rotated.jpg" />
29 </test>
30 </tests>
31
32 </tool>