comparison convert.xml @ 5:57e2503e6039 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dfb826cf50d7a26f033ce3da12f7606de67add9c"
author bgruening
date Tue, 10 Sep 2019 09:21:05 -0400
parents 4e9a3745dce4
children eb09d7e6d727
comparison
equal deleted inserted replaced
4:4e9a3745dce4 5:57e2503e6039
1 <tool id="graphicsmagick_image_convert" name="Image Converter" version="@VERSION@"> 1 <tool id="graphicsmagick_image_convert" name="Image Converter" version="@VERSION@+galaxy1">
2 <description></description> 2 <description></description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements" /> 6 <expand macro="requirements" />
12 #set $trans_options = str($transformations).replace(',', ' ') 12 #set $trans_options = str($transformations).replace(',', ' ')
13 #else: 13 #else:
14 #set $trans_options = '' 14 #set $trans_options = ''
15 #end if 15 #end if
16 16
17 gm convert $trans_options input.${input.ext} temp.${output_format} 17 gm convert -resize ${resize}%x $trans_options input.${input.ext} temp.${output_format}
18 && 18 &&
19 mv temp.${output_format} '${output}' 19 mv temp.${output_format} '${output}'
20 ]]> 20 ]]>
21 </command> 21 </command>
22 <inputs> 22 <inputs>
26 <option value="-flop">flip horizontally</option> 26 <option value="-flop">flip horizontally</option>
27 <option value="-rotate 90">rotate 90 degree to the right</option> 27 <option value="-rotate 90">rotate 90 degree to the right</option>
28 <option value="-rotate 270">rotate 90 degree to the left</option> 28 <option value="-rotate 270">rotate 90 degree to the left</option>
29 <option value="-rotate 180">rotate 180 degree</option> 29 <option value="-rotate 180">rotate 180 degree</option>
30 </param> 30 </param>
31 <param name="resize" type="float" value="100" label="Resize (%)" min="0"/>
31 <param name="output_format" type="select" label="Output Format"> 32 <param name="output_format" type="select" label="Output Format">
32 <option value="jpeg">jpg</option> 33 <option value="jpg">jpg</option>
33 <option value="png">png</option> 34 <option value="png">png</option>
34 <option value="bmp">bmp</option> 35 <option value="bmp">bmp</option>
35 <option value="gif">gif</option> 36 <option value="gif">gif</option>
36 <option value="svg">svg</option> 37 <option value="svg">svg</option>
37 <option value="eps">eps</option> 38 <option value="eps">eps</option>
39 </param> 40 </param>
40 </inputs> 41 </inputs>
41 <outputs> 42 <outputs>
42 <data format="png" name="output"> 43 <data format="png" name="output">
43 <change_format> 44 <change_format>
44 <when input="output_format" value="jpeg" format="jpg" /> 45 <when input="output_format" value="jpg" format="jpg" />
45 <when input="output_format" value="png" format="png" /> 46 <when input="output_format" value="png" format="png" />
46 <when input="output_format" value="bmp" format="bmp" /> 47 <when input="output_format" value="bmp" format="bmp" />
47 <when input="output_format" value="gif" format="gif" /> 48 <when input="output_format" value="gif" format="gif" />
48 <when input="output_format" value="svg" format="svg" /> 49 <when input="output_format" value="svg" format="svg" />
49 <when input="output_format" value="eps" format="eps" /> 50 <when input="output_format" value="eps" format="eps" />
54 <tests> 55 <tests>
55 <test> 56 <test>
56 <param name="input" value="donald.jpg" /> 57 <param name="input" value="donald.jpg" />
57 <param name="output_format" value="png" /> 58 <param name="output_format" value="png" />
58 <param name="transformations" value="-flip" /> 59 <param name="transformations" value="-flip" />
60 <param name="resize" value="50" />
59 <output name="output" file="result_image_convert_1.png" compare="sim_size" delta="20000" /> 61 <output name="output" file="result_image_convert_1.png" compare="sim_size" delta="20000" />
60 </test> 62 </test>
61 </tests> 63 </tests>
62 <help> 64 <help>
63 <![CDATA[ 65 <![CDATA[