diff tools/emboss.xml @ 2:a44112280169

Uploaded
author tomasz-bednarz
date Mon, 25 Nov 2013 21:12:30 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/emboss.xml	Mon Nov 25 21:12:30 2013 -0500
@@ -0,0 +1,32 @@
+<tool id="filter_emboss" name="Filter - Emboss" version="1.0.2">
+	
+	<description>Apply an emboss filter on image.</description>
+	
+	<command interpreter="python" >
+		#if (str($input.ext) == 'jpg'):
+			pil_filter.py $input $output emboss jpeg
+        #else:
+			pil_filter.py $input $output emboss ${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="Emboss on ${input.display_name}" />
+	</outputs>
+	
+	<help>
+		An emboss filter gives a 3D shadow effect to the image, the result is very useful for a bumpmap of the image. It can be achieved by taking a pixel on one side of the center, and subtracting one of the other side from it. Pixels can get either a positive or a negative result. 
+  	</help>
+
+  	<tests>
+  		<test>
+  			<param name="input" value="images/sydney.jpg" />
+  			<output name="output" file="images/sydney-emboss.jpg" />
+  		</test>
+  	</tests>
+
+</tool>
\ No newline at end of file