mirror of
https://github.com/He4eT/oddkb.git
synced 2026-05-05 01:17:25 +00:00
preview: layout border generator
This commit is contained in:
parent
1ab5ca0b35
commit
b185c9fa3c
1 changed files with 16 additions and 0 deletions
16
images/layers/add_border.sh
Executable file
16
images/layers/add_border.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue