![]() TODO: Provide a web page displaying detected duplicates.TODO: Provide options for more advanced duplicate detection - via a Python library or some other image processing.Perform simple duplicate detection based on metadata (filename, media type, dimensions).Populate a MongoDB database with media item metadata.Import the client secret file via an environment variable.Now that the OOB flow has been deprecated as of October 2022, migrate to a more secure, web-based flow.Obtain user authorization to access the Google Photos API via the OAuth 2.0 Out-Of-Band (OOB) flow using an app client secret file (not provided). ![]() Here's what this tool currently does, and what still needs to be added for it to function properly: Unfortunately, this even includes associating a photo created outside the app with an album that was created by the app, so I was unable to figure out a way not only to programmatically remove duplicates, but even to create an album of duplicates for the user to action on in the Google Photos UI. Upon implementation, I discovered that the Google Photos API does not allow apps to modify photos that were added outside the app. ⚠️ This project is a work in progress and will not currently make any changes to photos. So, I aim to fix my data in-place using the Google Photos API to detect duplicates using basic metadata (filename, height, width, etc.), add duplicates to an album, then remove them. However, I don't want to lose all of my album organization and photo descriptions. I could solve this clearing out my Photos data and re-uploading everything. For example, deleting a photo, re-uploading it, then restoring the original results in a duplicate even today. Additionally, duplicates can still make their way in through other means. I have thousands of photos across dozens of albums that, through one OS reinstall or another, were duplicated by a desktop client. Google has improved duplicate detection upon upload in recent years, but that wasn't always the case. I have used nearly every desktop client Google provided from Picasa, to the old Google Photos desktop uploader, to Google Drive's built-in Photos integration, and finally to Backup and Sync. When Picasa Web Albums retired, my cloud photos and albums moved to Google Photos. I've been a long-time user of Google Photos.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |