changeset 0:190b3bcc00aa draft

planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit dd88ad4ff9d10d72ed60263da31b406074173853
author bgruening
date Wed, 10 Oct 2018 16:16:35 -0400
parents
children 7e2ee5f43778
files macros.xml montage.xml static/images/-flip static/images/donald.jpg static/images/donald.png test-data/donald.jpg test-data/result_image_convert_1.png test-data/result_image_montage_1.jpg
diffstat 8 files changed, 55 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml	Wed Oct 10 16:16:35 2018 -0400
@@ -0,0 +1,13 @@
+<macros>
+    <token name="@VERSION@">1.3.26</token>
+    <xml name="requirements">
+        <requirements>
+            <requirement type="package" version="@VERSION@">graphicsmagick</requirement>
+            <yield />
+        </requirements>
+    </xml>
+    <xml name="citations">
+        <citations>
+        </citations>
+    </xml>
+</macros>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/montage.xml	Wed Oct 10 16:16:35 2018 -0400
@@ -0,0 +1,42 @@
+<tool id="graphicsmagick_image_montage" name="Image Montage" version="@VERSION@">
+    <description></description>
+    <macros>
+        <import>macros.xml</import>
+    </macros>
+    <expand macro="requirements" />
+    <command detect_errors="aggressive">
+<![CDATA[
+        ln -s '${input}' input_existing.jpg
+        &&
+        ln -s '${input_new}' input_new.jpg
+        &&
+        montage input_existing.jpg input_new.jpg -geometry +0+0 -background none -tile 1x2 temp.jpg
+]]>
+    </command>
+
+    <inputs>
+        <param format="jpg" name="input" type="data" label="Existing Image" />
+        <param format="jpg" name="input_new" type="data" label="New Image" />
+    </inputs>
+    <outputs>
+        <data format="jpg" name="output" from_work_dir="temp.jpg" />
+    </outputs>
+    <tests>
+        <test>
+            <param name="input" value="donald.jpg" />
+            <param name="input_new" value="donald.jpg" />
+            <output name="output" file="result_image_montage_1.jpg" compare="sim_size" />
+        </test>
+    </tests>
+    <help>
+<![CDATA[
+
+**What it does**
+
+Stick Images together
+
+
+]]>
+    </help>
+    <expand macro="citations" />
+</tool>
Binary file static/images/-flip has changed
Binary file static/images/donald.jpg has changed
Binary file static/images/donald.png has changed
Binary file test-data/donald.jpg has changed
Binary file test-data/result_image_convert_1.png has changed
Binary file test-data/result_image_montage_1.jpg has changed