Skip to content

Instantly share code, notes, and snippets.

@bzg
bzg / gist:2fc136b176690ee7f1e7
Created March 1, 2016 18:07
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