annotate tools/image_tileify.xml @ 2:7ac913487a09 default tip

README modified
author tomasz-bednarz
date Tue, 26 Nov 2013 13:41:11 +1100
parents 64374d852e36
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_tileify" name="Image Tileify" version="1.0.0">
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
2
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
3 <description>Change image to funky tiled looking 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 "tileify $numTiles $maxShift" -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="numTiles" size="5" type="integer" value="10" label="Number of tiles" help="Number of tiles." />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
12 <param name="maxShift" size="5" type="integer" value="5" label="Max shift" help="Max shift in pixels." />
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="Tileify on ${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 Breaks image up into rectangles and shifts them a random distance.
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
21 Areas not covered by the moved rectangles are the negative of the original image.
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
22 </help>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
23
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
24 <tests>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
25 <test>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
26 <param name="input" value="sydney.jpg" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
27 <param name="num_titles" value="10" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
28 <param name="max_shift" value="5" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
29 <output name="output" file="sydney-tiled.jpg" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
30 </test>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
31 </tests>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
32
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
33 </tool>