Skip to content

Instantly share code, notes, and snippets.

@sbellver
Created December 29, 2014 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbellver/50281a4c3b6615c95aa3 to your computer and use it in GitHub Desktop.
Save sbellver/50281a4c3b6615c95aa3 to your computer and use it in GitHub Desktop.
Renombra y rota las fotos en función de los datos EXIF
# Auto rota las imagenes y renombra en función de la fecha de disparo.
# Es necesario jhead http://www.sentex.net/~mwandel/jhead/
# y sudo npm install --global jpegtran-bin
find "$1" -name "*.jpg" -exec jhead -exonly -autorot -nf%Y-%m-%d_%H-%M-%S {} \;
find "$1" -name "*.JPG" -exec jhead -exonly -autorot -nf%Y-%m-%d_%H-%M-%S {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment