autorotate-image 86 B

1234567
  1. #!/bin/sh
  2. OLD=$1
  3. NEW=${OLD}-new
  4. convert -auto-orient ${OLD} ${NEW}
  5. mv ${NEW} ${OLD}