Mercurial > repos > tomasz-bednarz > image_tools
view tools/image_rotate.xml @ 1:4f6d8ffe0a60
Deleted selected files
author | tomasz-bednarz |
---|---|
date | Mon, 25 Nov 2013 21:32:41 -0500 |
parents | 64374d852e36 |
children |
line wrap: on
line source
<tool id="image_rotate" name="Image Rotate" version="1.0.0"> <description>Rotate the image.</description> <command interpreter="python" > image_do.py -i $input -o $output -c "rotate $rotDeg $expand" -e "$input.ext" </command> <inputs> <param name="input" type="data" format="png,jpg,tif,zip" label="Input image" help="Original RGB or grayscale image." /> <param name="rotDeg" size="5" type="integer" value="0" label="Degree" help="Degree of rotation" /> <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)." /> </inputs> <outputs> <data format="input" name="output" metadata_source="input" label="Rotated ${input.display_name}"/> </outputs> <help> Rotates an image the given number of degrees counter clockwise around its centre. </help> <tests> <test> <param name="input" value="sydney.jpg" /> <param name="rotDeg" value="30" /> <param name="expand" value="True" /> <output name="output" file="sydney-rotated.jpg" /> </test> </tests> </tool>