Skip to content

Extract data from the Facebook photo export files and insert it in EXIF

License

Notifications You must be signed in to change notification settings

Wieschie/facebook-photo-export-exif-restore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Photo Export - add EXIF data

Facebook scrubs all EXIF data from uploaded images. If you want to export them at any point, they'll be missing the original dates.

This script attempts to parse the exported files to obtain a date and a description, then inserts it into the EXIF data for the relevant image. This allows any photo management software to sort them by date.

Caveats:

  • The dates Facebook provides are the date and time the image was uploaded, not when it was taken.
  • Currently, the script only attempts to pull a description if a JSON dump is provided.

Using the JSON export is preferred.

Usage

python ./update_exif.py --force-replace <export_directory>

export_directory is the top level folder of the Facebook export - it should contain a folder called "photos_and_videos".

Setup

python -m venv .venv
./.venv/Scripts/activate
pip install -r requirements.txt

About

Extract data from the Facebook photo export files and insert it in EXIF

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages