Last active
January 22, 2024 15:29
-
-
Save cbrocas/8cce37602be2c738e517 to your computer and use it in GitHub Desktop.
Renaming pictures according EXIF data + rotating pictures
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
- Renaming all *.JPG files according the EXIF date taken of the picture (it gives : 2014-11-24_13-13-42.jpg) : | |
#jhead -n%Y-%m-%d_%H-%M-%S *.JPG | |
- Rotate all jpeg pictures of a directory : | |
#jhead -autorot *.jpg | |
- Rename & rotate recursively *.JPG files (and here, *.jpg also due to non sensitive search with the -iname option) starting from local directory : | |
#find . -iname "*.JPG" -exec jhead -n%Y-%m-%d_%H-%M-%S -autorot {} \; | |
- Par exemple, pour enlever 1h15 à toutes les photos | |
#jhead -ta-1:15 *.jpeg |
To retire 1h15 to the EXIF shot date/time of all .jpeg photos :
jhead -ta-1:15:00 *.jpeg
To add 1h15 to the EXIF shot date/time of all .jpeg photos :
jhead -ta+1:15:00 *.jpeg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same for video: