8 lines
316 B
Shell
Executable file
8 lines
316 B
Shell
Executable file
#!/bin/bash
|
|
# One sheet of every screenshot in a folder: tools/contact.sh <dir> [columns] -> <dir>/contact.png
|
|
set -eu
|
|
dir=${1:?usage: contact.sh <dir> [columns]}
|
|
cd "$dir"
|
|
rm -f contact.png
|
|
montage -label '%t' ./*.png -tile "${2:-2}x" -geometry '760x>+8+8' -background '#777' contact.png
|
|
echo "$dir/contact.png"
|