blob: d25ae9122af6799cbda31b008d23525393f724f2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
FILENAME=$1
if [ -z "${FILENAME}" ]; then
echo "First argument should be the PNG file to add border to."
exit 1
fi
convert ${FILENAME} -bordercolor none -border 1x1 -background white -alpha background -channel A -blur 1x1 -level 0,0% ${FILENAME}
|