Created
December 1, 2022 23:00
-
-
Save zkarj735/b906e7346e6a0d9743b0cb1e862d427e to your computer and use it in GitHub Desktop.
Split a multi-page TIFF file into individual files
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/zsh | |
# REQUIRES: ImageMagick | |
# Splits out the individual images using the original filename plus a suffix | |
convert multi-page.tiff -set filename:f "%[t]_%[fx:t+1]" +adjoin "%[filename:f].tif" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment