Created
December 1, 2021 08:55
-
-
Save sampollard/a847c7598e0f7cac3fdc1c23aa2aa5e2 to your computer and use it in GitHub Desktop.
Get 6 2" x 2" passport photos on a 4x6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create a 4x6 photo from one square image | |
if [ $# -ne 1 ]; then | |
echo "usage: ./passport.sh <filename>" | |
exit 1 | |
fi | |
FN="$1" | |
montage "$FN" -clone 0,0,0,0,0 -geometry +0+0 -tile 3x2 "${FN%.*}-4x6.jpeg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment