Mercurial > repos > tomasz-bednarz > filter_tools
view tools/invert.xml @ 2:a44112280169
Uploaded
author | tomasz-bednarz |
---|---|
date | Mon, 25 Nov 2013 21:12:30 -0500 |
parents | |
children |
line wrap: on
line source
<tool id="filter_invert" name="Filter - Invert" version="1.0.2"> <description>Apply an invert filter on the image.</description> <command interpreter="python" > #if (str($input.ext) == 'jpg'): pil_filter.py $input $output invert jpeg #else: pil_filter.py $input $output invert ${input.ext} #end if </command> <inputs> <param name="input" type="data" format="png,jpg,tif,zip" label="Input image" help="Original RGB or grayscale image." /> </inputs> <outputs> <data format="input" name="output" metadata_source="input" label="Invert on ${input.display_name}"/> </outputs> <help> Invert the image (colours). </help> <tests> <test> <param name="input" value="images/sydney.jpg" /> <output name="output" file="images/sydney-invert.jpg" /> </test> </tests> </tool>