Rename jpg files using date and time from exif

2011-04-04 at 19:11:12 | categories: scripts

Automatic rename camera pictures

We shoot many photos and we would like to see at first glance when the photo was taken just by looking at its name. Fortunatelly a timestamp is written in the exif, so it is easy to extract and rename file.

So some time ago, as a part of learning python, I wrote a script which does just that: it renames JPG pictures according to date and time found in their EXIF field. It can handle several files if called like ./photo-rename.py *.jpg. The output name will be YYYY-MM-DD_HHMMSS.jpg. For more information please look inside the script.