#!/bin/sh infile=$1 outfile=$2 width=200 height=32 alpha=30 convert -size ${width}x${height} xc:none \ \( \( -flip $infile -crop ${width}x${height}+0+0 \) \ -size ${width}x${height} gradient: -evaluate Pow 1.4 \ -compose Copy_Opacity -composite \) \ -compose blend -set "option:compose:args" $alpha -composite $outfile