Created
December 29, 2014 10:00
-
-
Save sbellver/50281a4c3b6615c95aa3 to your computer and use it in GitHub Desktop.
Renombra y rota las fotos en función de los datos EXIF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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