annotate convert.xml @ 7:ff05b2c4263c draft

planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 57a0433defa3cbc37ab34fbb0ebcfaeb680db8d5
author bgruening
date Sun, 05 Nov 2023 14:34:35 +0000
parents eb09d7e6d727
children 99217847314a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
ff05b2c4263c planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 57a0433defa3cbc37ab34fbb0ebcfaeb680db8d5
bgruening
parents: 6
diff changeset
1 <tool id="graphicsmagick_image_convert" name="Convert image format" version="@VERSION@+galaxy2">
ff05b2c4263c planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 57a0433defa3cbc37ab34fbb0ebcfaeb680db8d5
bgruening
parents: 6
diff changeset
2 <description>with GraphicsMagick</description>
0
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 &&
4
4e9a3745dce4 planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 519fe7dd96d4fb063e57b0a40ab58dd4855b98af
bgruening
parents: 3
diff changeset
11 #if str($transformations) != 'None':
3
c01226f0d828 planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 4a5c3c370df53a00aded3eaae40f3a8e4a263385-dirty
bgruening
parents: 2
diff changeset
12 #set $trans_options = str($transformations).replace(',', ' ')
c01226f0d828 planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 4a5c3c370df53a00aded3eaae40f3a8e4a263385-dirty
bgruening
parents: 2
diff changeset
13 #else:
c01226f0d828 planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 4a5c3c370df53a00aded3eaae40f3a8e4a263385-dirty
bgruening
parents: 2
diff changeset
14 #set $trans_options = ''
c01226f0d828 planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 4a5c3c370df53a00aded3eaae40f3a8e4a263385-dirty
bgruening
parents: 2
diff changeset
15 #end if
0
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
16
5
57e2503e6039 "planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dfb826cf50d7a26f033ce3da12f7606de67add9c"
bgruening
parents: 4
diff changeset
17 gm convert -resize ${resize}%x $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
18 &&
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
19 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
20 ]]>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
21 </command>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
22 <inputs>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
23 <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
24 <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
25 <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
26 <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
27 <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
28 <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
29 <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
30 </param>
5
57e2503e6039 "planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dfb826cf50d7a26f033ce3da12f7606de67add9c"
bgruening
parents: 4
diff changeset
31 <param name="resize" type="float" value="100" label="Resize (%)" min="0"/>
0
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
32 <param name="output_format" type="select" label="Output Format">
5
57e2503e6039 "planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dfb826cf50d7a26f033ce3da12f7606de67add9c"
bgruening
parents: 4
diff changeset
33 <option value="jpg">jpg</option>
0
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="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
35 <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
36 <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
37 <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
38 <option value="eps">eps</option>
6
eb09d7e6d727 "planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 5f5be1307a70cae3149db449d81472079a9487fd"
bgruening
parents: 5
diff changeset
39 <option value="pdf">pdf</option>
0
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
40 <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
41 </param>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
42 </inputs>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
43 <outputs>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
44 <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
45 <change_format>
5
57e2503e6039 "planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dfb826cf50d7a26f033ce3da12f7606de67add9c"
bgruening
parents: 4
diff changeset
46 <when input="output_format" value="jpg" format="jpg" />
0
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
47 <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
48 <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
49 <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
50 <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
51 <when input="output_format" value="eps" format="eps" />
6
eb09d7e6d727 "planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 5f5be1307a70cae3149db449d81472079a9487fd"
bgruening
parents: 5
diff changeset
52 <when input="output_format" value="pdf" format="pdf" />
0
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
53 <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
54 </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
55 </data>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
56 </outputs>
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 <test>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
59 <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
60 <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
61 <param name="transformations" value="-flip" />
5
57e2503e6039 "planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dfb826cf50d7a26f033ce3da12f7606de67add9c"
bgruening
parents: 4
diff changeset
62 <param name="resize" value="50" />
0
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
63 <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
64 </test>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
65 </tests>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
66 <help>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
67 <![CDATA[
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
68
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
69 **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
70
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
71 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
72 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
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 Input:
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
75
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
76 .. 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
77
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
78 Output:
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
79
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
80 .. 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
81
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
82 ]]>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
83 </help>
3d3e4a1bd21e planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff changeset
84 <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
85 </tool>