Created
May 18, 2019 08:36
-
-
Save dpaluy/cc017d2ede1598e35d13f8204f1290f2 to your computer and use it in GitHub Desktop.
Split TIFF files into pages using GraphicMagic
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 | |
| FILES="input/*.TIF" | |
| SPLIT="_" | |
| for filename in $FILES; do | |
| fbname=$(basename "$filename" | cut -d. -f1) | |
| gm convert "$filename" +adjoin "results/$fbname$SPLIT%01d.jpg" | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script uses GraphicsMagick
Install:
brew install graphicsmagick