scratch/tasks/make-semi-transparent-background.sh
Yann Esposito (Yogsototh) daae20c9f3 many small fixes
2013-01-22 22:21:59 +01:00

7 lines
238 B
Bash
Executable file

#!/usr/bin/env zsh
for fic in $@; do
tmp=${fic:r}-old.${fic:e}
mv $fic $tmp
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