Mercurial > repos > bgruening > image_processing
comparison convert.xml @ 2:8ff10e226c37 draft default tip
Uploaded
| author | bgruening |
|---|---|
| date | Sat, 14 Mar 2015 17:42:53 -0400 |
| parents | 7ff9146333d3 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:7ff9146333d3 | 2:8ff10e226c37 |
|---|---|
| 2 <description></description> | 2 <description></description> |
| 3 <requirements> | 3 <requirements> |
| 4 <requirement type="package" version="1.3.18">graphicsmagick</requirement> | 4 <requirement type="package" version="1.3.18">graphicsmagick</requirement> |
| 5 </requirements> | 5 </requirements> |
| 6 <command> | 6 <command> |
| 7 <![CDATA[ | |
| 7 ln -s '${input}' input.${input.ext}; | 8 ln -s '${input}' input.${input.ext}; |
| 8 #set $trans_options = str($transformations).replace(',', ' ') | 9 #set $trans_options = str($transformations).replace(',', ' ') |
| 9 | 10 |
| 10 convert $trans_options input.${input.ext} temp.${output_format}; | 11 convert $trans_options input.${input.ext} temp.${output_format}; |
| 11 mv temp.${output_format} '${output}'; | 12 mv temp.${output_format} '${output}'; |
| 13 ]]> | |
| 12 </command> | 14 </command> |
| 13 | 15 |
| 14 <inputs> | 16 <inputs> |
| 15 <param format="jpg,png,bmp,gif,svg,eps,tiff,xcf" name="input" type="data" label="Image to convert" /> | 17 <param format="jpg,png,bmp,gif,svg,eps,tiff,xcf" name="input" type="data" label="Image to convert" /> |
| 16 <param name="transformations" multiple="true" type="select" display="checkboxes" label="Transformations"> | 18 <param name="transformations" multiple="true" type="select" display="checkboxes" label="Transformations"> |
| 26 <option value="bmp">bmp</option> | 28 <option value="bmp">bmp</option> |
| 27 <option value="gif">gif</option> | 29 <option value="gif">gif</option> |
| 28 <option value="svg">svg</option> | 30 <option value="svg">svg</option> |
| 29 <option value="eps">eps</option> | 31 <option value="eps">eps</option> |
| 30 <option value="tiff">tiff</option> | 32 <option value="tiff">tiff</option> |
| 31 </param> | 33 </param> |
| 32 </inputs> | 34 </inputs> |
| 33 <outputs> | 35 <outputs> |
| 34 <data format="png" name="output"> | 36 <data format="png" name="output"> |
| 35 <change_format> | 37 <change_format> |
| 36 <when input="output_format" value="jpeg" format="jpg" /> | 38 <when input="output_format" value="jpeg" format="jpg" /> |
| 51 <param name="transformations" value="-flip" /> | 53 <param name="transformations" value="-flip" /> |
| 52 </test> | 54 </test> |
| 53 | 55 |
| 54 </tests> | 56 </tests> |
| 55 <help> | 57 <help> |
| 58 <![CDATA[ | |
| 56 | 59 |
| 57 **What it does** | 60 **What it does** |
| 58 | 61 |
| 59 This tool converts an image into another format. You can also do some transformations like flipping or rotating. | 62 This tool converts an image into another format. You can also do some transformations like flipping or rotating. |
| 60 Here you can see, how -flip behaves: | 63 Here you can see, how -flip behaves: |
| 65 | 68 |
| 66 Output: | 69 Output: |
| 67 | 70 |
| 68 .. image:: $PATH_TO_IMAGES/donald.png | 71 .. image:: $PATH_TO_IMAGES/donald.png |
| 69 | 72 |
| 73 ]]> | |
| 70 </help> | 74 </help> |
| 71 </tool> | 75 </tool> |
