#!/bin/bash

	avatar_factory_PATH=${0%%/themes/*}

	destination=$1
	grabber_picture=$2

	convert  \
		"$grabber_picture" -thumbnail 100x116 -matte -bordercolor none -border 10x0 \
		$avatar_factory_PATH/themes/Film/left.png -gravity west -composite \
		$avatar_factory_PATH/themes/Film/right.png -gravity east -composite \
		\( +clone -background black -shadow 55x3+3+3 -channel A -evaluate multiply 2 +channel \) \
		+swap +repage -gravity center -geometry -0-2 -composite \
		"$destination"


