Mercurial > repos > bgruening > graphicsmagick_image_convert
annotate convert.xml @ 3:c01226f0d828 draft
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 4a5c3c370df53a00aded3eaae40f3a8e4a263385-dirty
author | bgruening |
---|---|
date | Thu, 07 Feb 2019 09:12:13 -0500 |
parents | 627e8b38f24f |
children | 4e9a3745dce4 |
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 && |
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
|
11 #if $transformations: |
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 |
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
|
17 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
|
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> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
31 <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
|
32 <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
|
33 <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
|
34 <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
|
35 <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
|
36 <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
|
37 <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
|
38 <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
|
39 </param> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
40 </inputs> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
41 <outputs> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
42 <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
|
43 <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
|
44 <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
|
45 <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
|
46 <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
|
47 <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
|
48 <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
|
49 <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
|
50 <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
|
51 </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
|
52 </data> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
53 </outputs> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
54 <tests> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
55 <test> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
56 <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
|
57 <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
|
58 <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
|
59 <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
|
60 </test> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
61 </tests> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
62 <help> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
63 <![CDATA[ |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
64 |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
65 **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
|
66 |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
67 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
|
68 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
|
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 Input: |
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.jpg |
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 Output: |
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.png |
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 ]]> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
79 </help> |
3d3e4a1bd21e
planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
bgruening
parents:
diff
changeset
|
80 <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
|
81 </tool> |