Add layers

This commit is contained in:
He4eT 2024-09-04 20:48:37 +02:00
commit 97239bd728
5 changed files with 20 additions and 0 deletions

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

@ -0,0 +1,20 @@
#!/bin/bash
# GIMP commands for the screenshot preparation:
# - Layer > Crop to Content [Alt + L, O, O, Enter]
# - Image > Fit Canvas to Layers [Alt + I, A]
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"