view 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
line wrap: on
line source

<tool id="graphicsmagick_image_montage" name="Image Montage" version="@VERSION@+galaxy1">
    <description></description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="aggressive">
<![CDATA[
#for idx, data in enumerate($input):
ln -s '${data}' ${idx}.${data.ext};
#end for

montage

#for idx, data in enumerate($input):
    ${idx}.${data.ext}
#end for
    -geometry +0+0
    -background none
    -tile ${width}x
    temp.png
]]>
    </command>

    <inputs>
        <param format="jpg,png,bmp,gif,svg,eps,tiff" name="input" type="data" multiple="true" label="Images" />
        <param name="width" type="integer" value="4" label="# of images wide"/>
    </inputs>
    <outputs>
        <data format="png" name="output" from_work_dir="temp.png" />
    </outputs>
    <tests>
        <test>
            <param name="input" value="donald.jpg,donald.jpg,donald.jpg,donald.jpg,donald.jpg,donald.jpg" />
            <param name="width" value="4" />
            <output name="output" file="result_image_montage_1.png" compare="sim_size" />
        </test>
    </tests>
    <help>
<![CDATA[

**What it does**

Montage composites multiple images into a single, larger image. You may need to resize large images before you attempt to montage them.

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.
]]>
    </help>
    <expand macro="citations" />
</tool>