diff options
| author | Menny Even Danan <menny@evendanan.net> | 2018-10-13 00:46:16 +0000 |
|---|---|---|
| committer | Menny Even Danan <menny@evendanan.net> | 2018-10-13 00:46:16 +0000 |
| commit | a8ec5a9f5f2b907c2ffe072c0e6a5fe4a816458b (patch) | |
| tree | 0ef3b4a8306725634e93a544d36cd82c166aaf68 /scripts/add_border_to_png.sh | |
| parent | 1f7f0b668dd2c13261477b096fca4f925c4397a9 (diff) | |
| download | AnySoftKeyboard-a8ec5a9f5f2b907c2ffe072c0e6a5fe4a816458b.tar.gz AnySoftKeyboard-a8ec5a9f5f2b907c2ffe072c0e6a5fe4a816458b.tar.bz2 | |
Using images instead of text for watermarks
Diffstat (limited to 'scripts/add_border_to_png.sh')
| -rwxr-xr-x | scripts/add_border_to_png.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/add_border_to_png.sh b/scripts/add_border_to_png.sh new file mode 100755 index 000000000..d25ae9122 --- /dev/null +++ b/scripts/add_border_to_png.sh @@ -0,0 +1,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}
\ No newline at end of file |
