view tools/image_tileify.xml @ 2:7ac913487a09 default tip

README modified
author tomasz-bednarz
date Tue, 26 Nov 2013 13:41:11 +1100
parents 64374d852e36
children
line wrap: on
line source

<tool id="image_tileify" name="Image Tileify" version="1.0.0">

	<description>Change image to funky tiled looking image.</description>

	<command interpreter="python" >
		image_do.py -i $input -o $output -c "tileify $numTiles $maxShift" -e "$input.ext"
  	</command>

	<inputs>
		<param name="input" type="data" format="png,jpg,tif,zip" label="Input image" help="Original RGB or grayscale image." />
		<param name="numTiles" size="5" type="integer" value="10" label="Number of tiles" help="Number of tiles." />
		<param name="maxShift" size="5" type="integer" value="5" label="Max shift" help="Max shift in pixels." />
	</inputs>
	
	<outputs>
		<data format="input" name="output" metadata_source="input" label="Tileify on ${input.display_name}"/>
	</outputs>
	
	<help>
		Breaks image up into rectangles and shifts them a random distance.
		Areas not covered by the moved rectangles are the negative of the original image.
  	</help>

  	<tests>
  		<test>
  			<param name="input" value="sydney.jpg" />
  			<param name="num_titles" value="10" />
  			<param name="max_shift" value="5" />
  			<output name="output" file="sydney-tiled.jpg" />
  		</test>
  	</tests>

</tool>