autorotate-image 90 B

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