changeset 0:fd0e8bda0154 draft

planemo upload for repository https://github.com/bgruening/galaxytools/new/gm/tools/image_processing/image_processing/ commit bc7f5022150a6a31030775c7aafc81293833d55a
author bgruening
date Sat, 23 Dec 2023 11:35:44 +0000
parents
children bb871fbe177f
files compare.xml macros.xml static/images/-flip static/images/donald.jpg static/images/donald.png test-data/donald-colors-2.jpg test-data/donald-palette.jpg test-data/donald.jpg test-data/result_image_compare01.png test-data/result_image_compare02.png test-data/result_image_compare_same.png test-data/result_image_convert_1.png test-data/result_image_montage_1.png
diffstat 13 files changed, 258 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compare.xml	Sat Dec 23 11:35:44 2023 +0000
@@ -0,0 +1,79 @@
+<tool id="graphicsmagick_image_compare" name="Compare two images" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
+    <description>with GraphicsMagick</description>
+    <macros>
+        <import>macros.xml</import>
+    </macros>
+    <expand macro="requirements" />
+    <command detect_errors="aggressive">
+<![CDATA[
+        ln -s '${input1}' input1.${input1.ext} &&
+        ln -s '${input2}' input2.${input2.ext} &&
+
+        gm compare
+            -file outfile.png
+            -highlight-style $highlight_style
+            -metric $metric
+            -highlight-color $color
+            'input1.${input1.ext}'
+            'input2.${input2.ext}'
+]]>
+    </command>
+    <inputs>
+        <param name="input1" format="jpg,png,bmp,gif,svg,eps,tiff,xcf" type="data" label="First image to compare" />
+        <param name="input2" format="jpg,png,bmp,gif,svg,eps,tiff,xcf" type="data" label="Second image to compare" />
+
+        <param argument="-highlight-style" type="select" label="Pixel highlight style">
+            <option value="assign">assign</option>
+            <option value="threshold">threshold</option>
+            <option value="tint">tint</option>
+            <option value="xor">xor</option>
+        </param>
+        <param argument="-metric" type="select" label="Comparison metric">
+            <option value="MAE">MAE</option>
+            <option value="MSE">MSE</option>
+            <option value="PAE">PAE</option>
+            <option value="PSNR">PSNR</option>
+            <option value="PMSE">PMSE</option>
+        </param>
+        <expand macro="color" />
+    </inputs>
+    <outputs>
+        <data name="output" format="png" from_work_dir="outfile.png">
+        </data>
+    </outputs>
+    <tests>
+      <test>
+          <param name="input1" value="donald.jpg" />
+          <param name="input2" value="donald-palette.jpg" />
+          <output name="output" file="result_image_compare01.png" compare="sim_size" delta="500" />
+      </test>
+      <test>
+        <param name="input1" value="donald.jpg" />
+        <param name="input2" value="donald-palette.jpg" />
+        <param name="highlight_style" value="tint" />
+        <param name="metric" value="MAE" />
+        <output name="output" file="result_image_compare02.png" compare="sim_size" delta="500" />
+    </test>
+  </tests>
+    <help>
+<![CDATA[
+
+**What it does**
+
+This tool compares two images and provides a diff by pixels.
+Here you can see how it behaves:
+
+Input:
+
+.. image:: $PATH_TO_IMAGES/donald.jpg
+.. image:: $PATH_TO_IMAGES/donald-palette.jpg
+
+
+Output:
+
+.. image:: $PATH_TO_IMAGES/result_image_compare01.png
+
+]]>
+    </help>
+    <expand macro="citations" />
+</tool>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml	Sat Dec 23 11:35:44 2023 +0000
@@ -0,0 +1,179 @@
+<macros>
+    <token name="@TOOL_VERSION@">1.3.40</token>
+    <token name="@VERSION_SUFFIX@">0</token>
+    <xml name="requirements">
+        <requirements>
+            <requirement type="package" version="@TOOL_VERSION@">graphicsmagick</requirement>
+            <yield />
+        </requirements>
+    </xml>
+    <xml name="citations">
+        <citations>
+            <citation type="bibtex">
+                @misc{graphicsmagick,
+                author = {GraphicsMagick Group},
+                year = {2017},
+                title = {GraphicsMagick Image Processing System},
+                publisher = {GraphicsMagick Group},
+                url = {http://www.graphicsmagick.org},
+                }
+            </citation>
+        </citations>
+    </xml>
+    <xml name="color">
+        <param name="color" type="select" label="Color">
+            <option value="AliceBlue">AliceBlue</option>
+            <option value="AntiqueWhite">AntiqueWhite</option>
+            <option value="aqua">aqua</option>
+            <option value="aquamarine">aquamarine</option>
+            <option value="azure">azure</option>
+            <option value="beige">beige</option>
+            <option value="bisque">bisque</option>
+            <option value="black">black</option>
+            <option value="BlanchedAlmond">BlanchedAlmond</option>
+            <option value="blue">blue</option>
+            <option value="BlueViolet">BlueViolet</option>
+            <option value="brown">brown</option>
+            <option value="burlywood">burlywood</option>
+            <option value="cadet">cadet</option>
+            <option value="CadetBlue">CadetBlue</option>
+            <option value="chartreuse">chartreuse</option>
+            <option value="chocolate">chocolate</option>
+            <option value="coral">coral</option>
+            <option value="CornflowerBlue">CornflowerBlue</option>
+            <option value="cornsilk">cornsilk</option>
+            <option value="crimson">crimson</option>
+            <option value="cyan">cyan</option>
+            <option value="dark">dark</option>
+            <option value="DarkBlue">DarkBlue</option>
+            <option value="DarkCyan">DarkCyan</option>
+            <option value="DarkGoldenrod">DarkGoldenrod</option>
+            <option value="DarkGray">DarkGray</option>
+            <option value="DarkGreen">DarkGreen</option>
+            <option value="DarkKhaki">DarkKhaki</option>
+            <option value="DarkMagenta">DarkMagenta</option>
+            <option value="DarkOliveGreen">DarkOliveGreen</option>
+            <option value="DarkOrange">DarkOrange</option>
+            <option value="DarkOrchid">DarkOrchid</option>
+            <option value="DarkRed">DarkRed</option>
+            <option value="DarkSalmon">DarkSalmon</option>
+            <option value="DarkSeaGreen">DarkSeaGreen</option>
+            <option value="DarkSlateBlue">DarkSlateBlue</option>
+            <option value="DarkSlateGray">DarkSlateGray</option>
+            <option value="DarkTurquoise">DarkTurquoise</option>
+            <option value="DarkViolet">DarkViolet</option>
+            <option value="DeepPink">DeepPink</option>
+            <option value="DeepSkyBlue">DeepSkyBlue</option>
+            <option value="DimGray">DimGray</option>
+            <option value="DodgerBlue">DodgerBlue</option>
+            <option value="firebrick">firebrick</option>
+            <option value="FloralWhite">FloralWhite</option>
+            <option value="ForestGreen">ForestGreen</option>
+            <option value="fractal">fractal</option>
+            <option value="fuchsia">fuchsia</option>
+            <option value="gainsboro">gainsboro</option>
+            <option value="GhostWhite">GhostWhite</option>
+            <option value="gold">gold</option>
+            <option value="goldenrod">goldenrod</option>
+            <option value="gray">gray</option>
+            <option value="green">green</option>
+            <option value="GreenYellow">GreenYellow</option>
+            <option value="honeydew">honeydew</option>
+            <option value="HotPink">HotPink</option>
+            <option value="IndianRed">IndianRed</option>
+            <option value="indigo">indigo</option>
+            <option value="ivory">ivory</option>
+            <option value="khaki">khaki</option>
+            <option value="lavender">lavender</option>
+            <option value="LavenderBlush">LavenderBlush</option>
+            <option value="LawnGreen">LawnGreen</option>
+            <option value="LemonChiffon">LemonChiffon</option>
+            <option value="LightBlue">LightBlue</option>
+            <option value="LightCoral">LightCoral</option>
+            <option value="LightCyan">LightCyan</option>
+            <option value="LightGoldenrod">LightGoldenrod</option>
+            <option value="LightGoldenrodYellow">LightGoldenrodYellow</option>
+            <option value="LightGray">LightGray</option>
+            <option value="LightGreen">LightGreen</option>
+            <option value="LightPink">LightPink</option>
+            <option value="LightSalmon">LightSalmon</option>
+            <option value="LightSeaGreen">LightSeaGreen</option>
+            <option value="LightSkyBlue">LightSkyBlue</option>
+            <option value="LightSlateBlue">LightSlateBlue</option>
+            <option value="LightSlateGray">LightSlateGray</option>
+            <option value="LightSteelBlue">LightSteelBlue</option>
+            <option value="LightYellow">LightYellow</option>
+            <option value="lime">lime</option>
+            <option value="LimeGreen">LimeGreen</option>
+            <option value="linen">linen</option>
+            <option value="magenta">magenta</option>
+            <option value="maroon">maroon</option>
+            <option value="MediumAquamarine">MediumAquamarine</option>
+            <option value="MediumBlue">MediumBlue</option>
+            <option value="MediumForestGreen">MediumForestGreen</option>
+            <option value="MediumGoldenRod">MediumGoldenRod</option>
+            <option value="MediumOrchid">MediumOrchid</option>
+            <option value="MediumPurple">MediumPurple</option>
+            <option value="MediumSeaGreen">MediumSeaGreen</option>
+            <option value="MediumSlateBlue">MediumSlateBlue</option>
+            <option value="MediumSpringGreen">MediumSpringGreen</option>
+            <option value="MediumTurquoise">MediumTurquoise</option>
+            <option value="MediumVioletRed">MediumVioletRed</option>
+            <option value="MidnightBlue">MidnightBlue</option>
+            <option value="MintCream">MintCream</option>
+            <option value="MistyRose">MistyRose</option>
+            <option value="moccasin">moccasin</option>
+            <option value="NavajoWhite">NavajoWhite</option>
+            <option value="navy">navy</option>
+            <option value="NavyBlue">NavyBlue</option>
+            <option value="none">none</option>
+            <option value="OldLace">OldLace</option>
+            <option value="olive">olive</option>
+            <option value="OliveDrab">OliveDrab</option>
+            <option value="opaque">opaque</option>
+            <option value="orange">orange</option>
+            <option value="OrangeRed">OrangeRed</option>
+            <option value="orchid">orchid</option>
+            <option value="PaleGoldenrod">PaleGoldenrod</option>
+            <option value="PaleGreen">PaleGreen</option>
+            <option value="PaleTurquoise">PaleTurquoise</option>
+            <option value="PaleVioletRed">PaleVioletRed</option>
+            <option value="PapayaWhip">PapayaWhip</option>
+            <option value="PeachPuff">PeachPuff</option>
+            <option value="peru">peru</option>
+            <option value="pink">pink</option>
+            <option value="plum">plum</option>
+            <option value="PowderBlue">PowderBlue</option>
+            <option value="purple">purple</option>
+            <option value="red">red</option>
+            <option value="RosyBrown">RosyBrown</option>
+            <option value="RoyalBlue">RoyalBlue</option>
+            <option value="SaddleBrown">SaddleBrown</option>
+            <option value="salmon">salmon</option>
+            <option value="SandyBrown">SandyBrown</option>
+            <option value="SeaGreen">SeaGreen</option>
+            <option value="seashell">seashell</option>
+            <option value="sienna">sienna</option>
+            <option value="silver">silver</option>
+            <option value="SkyBlue">SkyBlue</option>
+            <option value="SlateBlue">SlateBlue</option>
+            <option value="SlateGray">SlateGray</option>
+            <option value="snow">snow</option>
+            <option value="SpringGreen">SpringGreen</option>
+            <option value="SteelBlue">SteelBlue</option>
+            <option value="tan">tan</option>
+            <option value="teal">teal</option>
+            <option value="thistle">thistle</option>
+            <option value="tomato">tomato</option>
+            <option value="transparent">transparent</option>
+            <option value="turquoise">turquoise</option>
+            <option value="violet">violet</option>
+            <option value="VioletRed">VioletRed</option>
+            <option value="wheat">wheat</option>
+            <option value="white">white</option>
+            <option value="WhiteSmoke">WhiteSmoke</option>
+            <option value="yellow">yellow</option>
+            <option value="YellowGreen">YellowGreen</option>
+        </param>
+    </xml>
+</macros>
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-colors-2.jpg has changed
Binary file test-data/donald-palette.jpg has changed
Binary file test-data/donald.jpg has changed
Binary file test-data/result_image_compare01.png has changed
Binary file test-data/result_image_compare02.png has changed
Binary file test-data/result_image_compare_same.png has changed
Binary file test-data/result_image_convert_1.png has changed
Binary file test-data/result_image_montage_1.png has changed