comparison montage.xml @ 2:4dada93ef525 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:23 -0400
parents 190b3bcc00aa
children 39881709807e
comparison
equal deleted inserted replaced
1:7e2ee5f43778 2:4dada93ef525
1 <tool id="graphicsmagick_image_montage" name="Image Montage" version="@VERSION@"> 1 <tool id="graphicsmagick_image_montage" name="Image Montage" 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" />
7 <command detect_errors="aggressive"> 7 <command detect_errors="aggressive">
8 <![CDATA[ 8 <![CDATA[
9 ln -s '${input}' input_existing.jpg 9 #for idx, data in enumerate($input):
10 && 10 ln -s '${data}' ${idx}.${data.ext};
11 ln -s '${input_new}' input_new.jpg 11 #end for
12 && 12
13 montage input_existing.jpg input_new.jpg -geometry +0+0 -background none -tile 1x2 temp.jpg 13 montage
14
15 #for idx, data in enumerate($input):
16 ${idx}.${data.ext}
17 #end for
18 -geometry +0+0
19 -background none
20 -tile ${width}x
21 temp.png
14 ]]> 22 ]]>
15 </command> 23 </command>
16 24
17 <inputs> 25 <inputs>
18 <param format="jpg" name="input" type="data" label="Existing Image" /> 26 <param format="jpg,png,bmp,gif,svg,eps,tiff" name="input" type="data" multiple="true" label="Images" />
19 <param format="jpg" name="input_new" type="data" label="New Image" /> 27 <param name="width" type="integer" value="4" label="# of images wide"/>
20 </inputs> 28 </inputs>
21 <outputs> 29 <outputs>
22 <data format="jpg" name="output" from_work_dir="temp.jpg" /> 30 <data format="png" name="output" from_work_dir="temp.png" />
23 </outputs> 31 </outputs>
24 <tests> 32 <tests>
25 <test> 33 <test>
26 <param name="input" value="donald.jpg" /> 34 <param name="input" value="donald.jpg,donald.jpg,donald.jpg,donald.jpg,donald.jpg,donald.jpg" />
27 <param name="input_new" value="donald.jpg" /> 35 <param name="width" value="4" />
28 <output name="output" file="result_image_montage_1.jpg" compare="sim_size" /> 36 <output name="output" file="result_image_montage_1.png" compare="sim_size" />
29 </test> 37 </test>
30 </tests> 38 </tests>
31 <help> 39 <help>
32 <![CDATA[ 40 <![CDATA[
33 41
34 **What it does** 42 **What it does**
35 43
36 Stick Images together 44 Montage composites multiple images into a single, larger image. You may need to resize large images before you attempt to montage them.
37 45
38 46 The width parameter controls how many images wide the montage will be. With a width of 4, and 8 images selected, you will get 2 rows of 4 images. If you have 6 images selected, the first row will have 4 images, and the second will only have two.
39 ]]> 47 ]]>
40 </help> 48 </help>
41 <expand macro="citations" /> 49 <expand macro="citations" />
42 </tool> 50 </tool>