Mercurial > repos > bgruening > graphicsmagick_image_convert
diff convert.xml @ 5:57e2503e6039 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:05 -0400 |
parents | 4e9a3745dce4 |
children | eb09d7e6d727 |
line wrap: on
line diff
--- a/convert.xml Sun Jul 14 06:07:00 2019 -0400 +++ b/convert.xml Tue Sep 10 09:21:05 2019 -0400 @@ -1,4 +1,4 @@ -<tool id="graphicsmagick_image_convert" name="Image Converter" version="@VERSION@"> +<tool id="graphicsmagick_image_convert" name="Image Converter" version="@VERSION@+galaxy1"> <description></description> <macros> <import>macros.xml</import> @@ -14,7 +14,7 @@ #set $trans_options = '' #end if - gm convert $trans_options input.${input.ext} temp.${output_format} + gm convert -resize ${resize}%x $trans_options input.${input.ext} temp.${output_format} && mv temp.${output_format} '${output}' ]]> @@ -28,8 +28,9 @@ <option value="-rotate 270">rotate 90 degree to the left</option> <option value="-rotate 180">rotate 180 degree</option> </param> + <param name="resize" type="float" value="100" label="Resize (%)" min="0"/> <param name="output_format" type="select" label="Output Format"> - <option value="jpeg">jpg</option> + <option value="jpg">jpg</option> <option value="png">png</option> <option value="bmp">bmp</option> <option value="gif">gif</option> @@ -41,7 +42,7 @@ <outputs> <data format="png" name="output"> <change_format> - <when input="output_format" value="jpeg" format="jpg" /> + <when input="output_format" value="jpg" format="jpg" /> <when input="output_format" value="png" format="png" /> <when input="output_format" value="bmp" format="bmp" /> <when input="output_format" value="gif" format="gif" /> @@ -56,6 +57,7 @@ <param name="input" value="donald.jpg" /> <param name="output_format" value="png" /> <param name="transformations" value="-flip" /> + <param name="resize" value="50" /> <output name="output" file="result_image_convert_1.png" compare="sim_size" delta="20000" /> </test> </tests>