1.4.0 • Published 3 months ago

gphotos-takeout-repair v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

gphotos-takeout-repair CI npm version

Transform a Google Photos export (created with Takeout) into a useful directory of files.

The output is a directory of files (with folder structure retained) suitable for use as a traditional photo library, where there are no JSON files or duplicate "edited" versions, and files have suitable Date Created timestamps.

For example given the following files in the source directory:

FilenameDate CreatedDescription
IMG_0001-edited.jpgTakeout export dateEdited version of the file
IMG_0001.jpgTakeout export dateOriginal version of the file
IMG_0001.jpg.jsonTakeout export dateMetadata information for file
IMG_0002.mp4Takeout export dateOriginal version of the file
IMG_0002.mp4.jsonTakeout export dateMetadata information for file

The output in the destination directory will be:

FilenameDate CreatedDescription
IMG_0001.jpg"Photo taken" date from JSONEdited version of the file
IMG_0002.mp4"Photo taken" date from JSONOriginal version of the file

Features

  • Copies files to destination directory using photoTakenTime from the JSON file
  • Copies the (usually best) "edited" version where possible to prevent duplicates
  • Retains source directory folder structure to handle Takeout's exporting of albums
  • Handles many common Takeout export filename and encoding issues (view tests)

Install

npm install -g gphotos-takeout-repair

Usage

gphotos-takeout-repair --src ./unzipped-takeout-dir --dest ./output-dir

Related

1.4.0

3 months ago

1.3.1

6 months ago

1.3.0

6 months ago

1.2.0

6 months ago

1.1.2

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago