Last active
January 27, 2019 18:28
-
-
Save bencrowder/5091137 to your computer and use it in GitHub Desktop.
Shell script to split two-spread image into two different images. Uses ImageMagick.
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/sh | |
# Split two-spread image into two different images (leaving some overlap for safety) | |
# Usage: splitimage filename.jpg | |
# ---------------------------------------------------------------------------------- | |
convert $1 -crop 56x100%+0+0 +repage output/`basename $1 .jpg`a.jpg | |
convert $1 -flop -crop 60x100%+0+0 -flop +repage output/`basename $1 .jpg`b.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment