#!/bin/sh

OLD=$1
NEW=${OLD}-new

convert -auto-orient ${OLD} ${NEW}
mv ${NEW} ${OLD}
