scripts/dot-local/bin/luma-to-png
2023-10-23 15:16:31 +11:00

6 lines
190 B
Bash
Executable file

#!/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