annotate tools/image_resize.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_resize" name="Image Resize" version="1.0.0">
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
2
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
3 <description>Resize 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 "resize $xx $yy $filter" -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="xx" size="5" type="integer" value="0" label="Width" help="Target image width" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
12 <param name="yy" size="5" type="integer" value="0" label="Height" help="Target image height" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
13 <param name="filter" type="select" label="Filter">
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
14 <option value="0">NEAREST</option>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
15 <option value="1" selected="true">ANTIALIAS</option>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
16 <option value="2">BILINEAR</option>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
17 <option value="3">BICUBIC</option>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
18 </param>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
19 </inputs>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
20
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
21 <outputs>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
22 <data format="input" name="output" metadata_source="input" label="Resized ${input.display_name}"/>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
23 </outputs>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
24
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
25 <help>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
26 Resizes an image.
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
27 </help>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
28
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
29 <tests>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
30 <test>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
31 <param name="input" value="sydney.jpg" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
32 <param name="xx" value="50" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
33 <param name="yy" value="50" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
34 <param name="filter" value="1" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
35 <output name="output" file="sydney-resized.jpg" />
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
36 </test>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
37 </tests>
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
38
64374d852e36 Uploaded
tomasz-bednarz
parents:
diff changeset
39 </tool>