0
|
1 <tool id="image_tileify" name="Image Tileify" version="1.0.0">
|
|
2
|
|
3 <description>Change image to funky tiled looking image.</description>
|
|
4
|
|
5 <command interpreter="python" >
|
|
6 image_do.py -i $input -o $output -c "tileify $numTiles $maxShift" -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="numTiles" size="5" type="integer" value="10" label="Number of tiles" help="Number of tiles." />
|
|
12 <param name="maxShift" size="5" type="integer" value="5" label="Max shift" help="Max shift in pixels." />
|
|
13 </inputs>
|
|
14
|
|
15 <outputs>
|
|
16 <data format="input" name="output" metadata_source="input" label="Tileify on ${input.display_name}"/>
|
|
17 </outputs>
|
|
18
|
|
19 <help>
|
|
20 Breaks image up into rectangles and shifts them a random distance.
|
|
21 Areas not covered by the moved rectangles are the negative of the original image.
|
|
22 </help>
|
|
23
|
|
24 <tests>
|
|
25 <test>
|
|
26 <param name="input" value="sydney.jpg" />
|
|
27 <param name="num_titles" value="10" />
|
|
28 <param name="max_shift" value="5" />
|
|
29 <output name="output" file="sydney-tiled.jpg" />
|
|
30 </test>
|
|
31 </tests>
|
|
32
|
|
33 </tool> |