Skip to content

Instantly share code, notes, and snippets.

@zkarj735
Created December 1, 2022 23:00
Show Gist options
  • Save zkarj735/b906e7346e6a0d9743b0cb1e862d427e to your computer and use it in GitHub Desktop.
Save zkarj735/b906e7346e6a0d9743b0cb1e862d427e to your computer and use it in GitHub Desktop.
Split a multi-page TIFF file into individual files
#!/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