summaryrefslogtreecommitdiffstats
path: root/make-mirror.sh
blob: cf8e314b0da0af6c38529cb86d55e946f4f3241a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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