Skip to content

Instantly share code, notes, and snippets.

View goosmurf's full-sized avatar

Yun Huang Yong goosmurf

View GitHub Profile
@goosmurf
goosmurf / exif_date.py
Created June 29, 2019 09:42 — forked from ikoblik/exif_date.py
Python script to update image creation and modification dates to the EXIF date.
#!/usr/bin/env python
"""A simple utility to restore file creation and modification
dates back to their original values from EXIF.
This script requires exif module to be installed or the exif
command line utility to be in the path.
To function correctly under windows this script needs win32file and
win32con modules. Otherwise it will not be able to restore the creation