annotate convert.xml @ 2:627e8b38f24f draft

planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 81250c3ad4860b2f6c190510f3809ab118d6dfe7
author bgruening
date Tue, 20 Nov 2018 05:54:54 -0500
parents e88f1111d9e7
children c01226f0d828
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
1 <tool id="graphicsmagick_image_convert" name="Image Converter" version="@VERSION@">
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
2 <description></description>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
3 <macros>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
4 <import>macros.xml</import>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
5 </macros>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
6 <expand macro="requirements" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
7 <command detect_errors="aggressive">
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
8 <![CDATA[
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
9 ln -s '${input}' input.${input.ext}
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
10 &&
2
627e8b38f24f planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 81250c3ad4860b2f6c190510f3809ab118d6dfe7
bgruening
parents: 1
diff changeset
11 #set $trans_options = str($transformations).replace(',', ' ')
0
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
12
2
627e8b38f24f planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 81250c3ad4860b2f6c190510f3809ab118d6dfe7
bgruening
parents: 1
diff changeset
13 gm convert $trans_options input.${input.ext} temp.${output_format}
0
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
14 &&
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
15 mv temp.${output_format} '${output}'
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
16 ]]>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
17 </command>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
18 <inputs>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
19 <param format="jpg,png,bmp,gif,svg,eps,tiff,xcf" name="input" type="data" label="Image to convert" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
20 <param name="transformations" multiple="true" type="select" display="checkboxes" label="Transformations">
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
21 <option value="-flip">flip vertically</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
22 <option value="-flop">flip horizontally</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
23 <option value="-rotate 90">rotate 90 degree to the right</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
24 <option value="-rotate 270">rotate 90 degree to the left</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
25 <option value="-rotate 180">rotate 180 degree</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
26 </param>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
27 <param name="output_format" type="select" label="Output Format">
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
28 <option value="jpeg">jpg</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
29 <option value="png">png</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
30 <option value="bmp">bmp</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
31 <option value="gif">gif</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
32 <option value="svg">svg</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
33 <option value="eps">eps</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
34 <option value="tiff">tiff</option>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
35 </param>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
36 </inputs>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
37 <outputs>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
38 <data format="png" name="output">
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
39 <change_format>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
40 <when input="output_format" value="jpeg" format="jpg" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
41 <when input="output_format" value="png" format="png" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
42 <when input="output_format" value="bmp" format="bmp" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
43 <when input="output_format" value="gif" format="gif" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
44 <when input="output_format" value="svg" format="svg" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
45 <when input="output_format" value="eps" format="eps" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
46 <when input="output_format" value="tiff" format="tiff" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
47 </change_format>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
48 </data>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
49 </outputs>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
50 <tests>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
51 <test>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
52 <param name="input" value="donald.jpg" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
53 <param name="output_format" value="png" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
54 <param name="transformations" value="-flip" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
55 <output name="output" file="result_image_convert_1.png" compare="sim_size" delta="20000" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
56 </test>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
57 </tests>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
58 <help>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
59 <![CDATA[
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
60
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
61 **What it does**
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
62
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
63 This tool converts an image into another format. You can also do some transformations like flipping or rotating.
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
64 Here you can see, how -flip behaves:
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
65
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
66 Input:
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
67
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
68 .. image:: $PATH_TO_IMAGES/donald.jpg
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
69
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
70 Output:
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
71
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
72 .. image:: $PATH_TO_IMAGES/donald.png
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
73
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
74 ]]>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
75 </help>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
76 <expand macro="citations" />
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
77 </tool>