Skip to main content
100%

Update Facebook Photos Export with EXIF data

✓ Published0🌍 Public
KKevinGutowski
Last edited Sep 13, 2021
Created on Sep 13, 2021

This example restores missing creation metadata to photos exported from Facebook by rewriting EXIF, XMP, and IPTC tags. It reads each album’s JSON file from the `posts/album/` directory, extracts the photo URI and creation timestamp, and converts the Unix timestamp to a readable date. Using `pyexiv2`, it updates fields such as `Exif.Image.DateTime`, `Xmp.photoshop.DateCreated`, and `Iptc.Application2.Caption` with the original timestamp and photo title/description. The script processes all album JSON files in the folder, ensuring the exported images retain accurate capture dates.

AI-generated description

Similar vizzes