Skip to content

Instantly share code, notes, and snippets.

@andrewmcdonough
Created September 30, 2013 13:10

Revisions

  1. andrewmcdonough created this gist Sep 30, 2013.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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