Created
November 25, 2020 19:16
-
-
Save mnmly/641d8ebad81173428a36044b74789525 to your computer and use it in GitHub Desktop.
convert-tile
This file contains 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
#!/usr/bin/env bash | |
dir="$(dirname "$1")" | |
base=$(basename "$1" | cut -d. -f1) | |
out="$dir/$base-%d03.jpg" | |
convert "$1" -crop 2x2@ +repage +adjoin "$out" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment