scratch/tasks/make-semi-transparent-background.sh

8 lines
238 B
Bash
Raw Normal View History

#!/usr/bin/env zsh
for fic in $@; do
tmp=${fic:r}-old.${fic:e}
mv $fic $tmp
2013-01-22 21:21:59 +00:00
convert -fuzz 1% -transparent white -background 'rgba(255,255,255,0.66)' -fill white -channel Alpha -evaluate Add 0.5 -flatten $tmp $fic
\rm -f $tmp
done