Created
September 30, 2013 13:10
-
-
Save andrewmcdonough/6763580 to your computer and use it in GitHub Desktop.
Rotating photos using imagemagick
This file contains 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
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