Skip to content

Instantly share code, notes, and snippets.

@andrewmcdonough
Created September 30, 2013 13:10
Show Gist options
  • Save andrewmcdonough/6763580 to your computer and use it in GitHub Desktop.
Save andrewmcdonough/6763580 to your computer and use it in GitHub Desktop.
Rotating photos using imagemagick
Without cropping
mkdir converted
for file in *.JPG; do convert "$file" -rotate 180 "converted/$file" ; done
With a little cropping to clip the bike's seat from the photos:
for file in *.JPG; do convert "$file" -crop 4000x2600 -rotate 180 -gravity center "converted/$file" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment