Find all landscape images in a directory (sub directories included) and split them in half from right to left. For the opposite direction, remove the magick -reverse
option on line 32.
Requires imagemagick (brew install imagemagick
on macOS).
$ cd [directory]
$ ./split_landscape.sh
or
$ ./split_landscape.sh [directory]
Thank you for this, this was exactly what I was looking for!
I did run into some issues when running this
Here's an updated version that does work!