Skip to content

Instantly share code, notes, and snippets.

@Edwardtonnn
Created May 20, 2024 22:00
Show Gist options
  • Save Edwardtonnn/10db54b997e95b9576a0c2d943258c77 to your computer and use it in GitHub Desktop.
Save Edwardtonnn/10db54b997e95b9576a0c2d943258c77 to your computer and use it in GitHub Desktop.
Split images down the middle using image magick
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