oddkb/images/layers/add_border.sh

16 lines
263 B
Bash
Executable file

#!/bin/bash
filename="$1"
bordercolor="#424242"
bordersize=16
if [ ! -f "$filename" ]; then
echo "Error: File not found: $filename"
exit 1
fi
convert \
"$filename" \
-bordercolor "$bordercolor" \
-border "${bordersize}x${bordersize}" \
"$filename"