Skip to content

I used Google takeout to get my photos, but I wanted to extract just the photos, eliminate duplicates, and flatten to a single folder.

Notifications You must be signed in to change notification settings

brainynai/googlePhotosFlattener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This Python script will ask the user for a source directory which it will recursively traverse in order to move all found picture or video files to the directory specified in the Settings class.

I found that Google Takeout provided a lot of non-photo files (mainly .json) as well as a bunch of duplicated photos. This script eliminates those by only moving photo and video files to the output directory, and skips any duplicates (after confirming they contain the same data).

If any files are found that duplicate a name, but don't contain identical data, the script exits for manual intervention. This could be fixed by changing the destination name to something like filename(1), but I never encountered this case.

About

I used Google takeout to get my photos, but I wanted to extract just the photos, eliminate duplicates, and flatten to a single folder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages