Created
May 20, 2024 22:00
-
-
Save Edwardtonnn/10db54b997e95b9576a0c2d943258c77 to your computer and use it in GitHub Desktop.
Split images down the middle using image magick
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
find . -name '*.jpg' -exec sh -c 'convert "$0" -crop 50%x100% +repage +adjoin "${0%.jpg}_%d.jpg"' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment