Created
December 29, 2014 10:00
-
-
Save sbellver/50281a4c3b6615c95aa3 to your computer and use it in GitHub Desktop.
Revisions
-
sbellver created this gist
Dec 29, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ # 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 {} \;