view montage.xml @ 8:3e81299dfce3 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit 001310e5fc90be6dc931845e1dbbbcb26092b4b4
author bgruening
date Thu, 22 Aug 2024 19:00:52 +0000
parents 8dbc700cb940
children
line wrap: on
line source

<tool id="graphicsmagick_image_montage" name="Image Montage" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
    <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

gm 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>