Skip to content

Instantly share code, notes, and snippets.

@pbinkley
Created June 5, 2014 20:48
Show Gist options
  • Save pbinkley/8a69805a4e50ff823630 to your computer and use it in GitHub Desktop.
Save pbinkley/8a69805a4e50ff823630 to your computer and use it in GitHub Desktop.
Alexandria:temp peterbinkley$ mogrify -crop 50%x100% +repage testa.tif
testa.tif
Alexandria:temp peterbinkley$ identify testa.tif
testa.tif[0] TIFF 290x480 290x480+0+0 8-bit sRGB 256c 282KB 0.000u 0:00.000
testa.tif[1] TIFF 290x480 290x480+0+0 8-bit sRGB 256c 282KB 0.000u 0:00.000
Alexandria:temp peterbinkley$ convert -crop 50%x100% +repage testb.tif testb-%d.tif
Alexandria:temp peterbinkley$ ls
testa.tif testb-0.tif testb-1.tif testb.tif
Alexandria:temp peterbinkley$ identify testb-0.tif
testb-0.tif TIFF 290x480 290x480+0+0 8-bit sRGB 256c 141KB 0.000u 0:00.000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment