Skip to content

Instantly share code, notes, and snippets.

@bzg
Created March 1, 2016 18:07
Show Gist options
  • Save bzg/2fc136b176690ee7f1e7 to your computer and use it in GitHub Desktop.
Save bzg/2fc136b176690ee7f1e7 to your computer and use it in GitHub Desktop.
Use imagemagick to rotate pictures in a directory
#!/bin/bash
# Uses http://www.imagemagick.org
find . -name "*.jpg" | while read file; do
convert "$file" -rotate 15 "$file"_rotated.jpg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment