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 |
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 | |
# Batch rename | |
# Usage: dub image-X.jpg *.jpg | |
# | |
# - First argument is template for renaming | |
# - The "X" in the template will be replaced with zero-padded numbers | |
# (e.g., image-001.jpg, image-002.jpg, etc.) | |
# | |
# More examples: |
NewerOlder