Tag Archives: exif

how to rename jpg files easily

hey folks,

here some useful tips, how to easily rename jpg file according to their exif information (found at http://giantdorks.org/alain/rename-jpeg-files-with-exif-date-using-exiv2):

exiv2 -r '%Y-%m-%d_%H%M%S_:basename:' rename myfile.jpg

or using this script for entire directories:

find . -iname "*.JPG" | while read f; do
  exiv2 -r '%Y-%m-%d_%H-%M-%S_:basename:' rename "$f"

thanks to Alain Kelder! 😉