index all rss twitter github linkedin email

Álvaro Ramírez

23 August 2015 Use ImageMagick to auto-orient images

Recently needed to rotate images based on EXIF metadata. ImageMagick to the rescue:

$ for i in *.png; do convert -auto-orient "$i" "$i"; done