preview: layout border generator

This commit is contained in:
He4eT 2023-12-05 23:23:54 +01:00
commit b185c9fa3c

16
images/layers/add_border.sh Executable file
View file

@ -0,0 +1,16 @@
#!/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"