diff tools/image_tileify.xml @ 0:64374d852e36

Uploaded
author tomasz-bednarz
date Mon, 25 Nov 2013 21:32:12 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/image_tileify.xml	Mon Nov 25 21:32:12 2013 -0500
@@ -0,0 +1,33 @@
+<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>
\ No newline at end of file