scripts/dot-local/bin/luma-to-png

7 lines
190 B
Text
Raw Permalink Normal View History

#!/bin/zsh
for src in $argv; do
dest=$src:r.png
[[ $src = *.png ]] && dest=${src:r}_twitter.png
magick $src -alpha set -fill 'rgba(0,0,0,0)' -draw 'color 0,0 point' $dest || exit $?
done