Skip to content

Instantly share code, notes, and snippets.

@sampollard
Created December 1, 2021 08:55
Show Gist options
  • Save sampollard/a847c7598e0f7cac3fdc1c23aa2aa5e2 to your computer and use it in GitHub Desktop.
Save sampollard/a847c7598e0f7cac3fdc1c23aa2aa5e2 to your computer and use it in GitHub Desktop.
Get 6 2" x 2" passport photos on a 4x6
#!/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