All Projects → grubyak → google-photos-timezone-fix

grubyak / google-photos-timezone-fix

Licence: MIT license
Iterates over photos in given Google Photos album and edits date/time/timezone of each photo in order to fix their order

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to google-photos-timezone-fix

php-photoslibrary
PHP client library for the Google Photos Library API
Stars: ✭ 75 (+240.91%)
Mutual labels:  google-photos
flickr to google photos migration
A tool for migrating your photo library from Flickr to Google Photos
Stars: ✭ 39 (+77.27%)
Mutual labels:  google-photos
timezones
Nim timezone library compatible with the standard library.
Stars: ✭ 37 (+68.18%)
Mutual labels:  timezone
hs-hourglass
efficient and simpler time API for haskell
Stars: ✭ 43 (+95.45%)
Mutual labels:  timezone
cldr-engine
Internationalization and localization in Typescript with Unicode CLDR, batteries included
Stars: ✭ 34 (+54.55%)
Mutual labels:  timezone
Positional
An elegant and colorful location information app for Android with Compass, Clock, Level, Sun, Moon, Trail Marker and many other features.
Stars: ✭ 72 (+227.27%)
Mutual labels:  timezone
IP2Location-C-Library
IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
Stars: ✭ 37 (+68.18%)
Mutual labels:  timezone
Shell-Scripts
Shell scripts about some basic topics, current time, calculator, sorting, restaurant and more.
Stars: ✭ 100 (+354.55%)
Mutual labels:  timezone
timezone
Timezone project providing a simple way to turn location and unix timestamp into timezone and local time.
Stars: ✭ 24 (+9.09%)
Mutual labels:  timezone
google-photos-api-client-go
Google photos api client in go
Stars: ✭ 35 (+59.09%)
Mutual labels:  google-photos
compact-timezone-list
Simple array of timezones with their long name, tz code, and UTC offset.
Stars: ✭ 33 (+50%)
Mutual labels:  timezone
gphotos sort
Sort Google Photos album images by filename.
Stars: ✭ 40 (+81.82%)
Mutual labels:  google-photos
node-red-contrib-moment
Node-Red Node that produces formatted Date/Time output using the Moment.JS library. Timezone, dst and locale aware.
Stars: ✭ 31 (+40.91%)
Mutual labels:  timezone
llttz
The easy way to get java TimeZone from latitude/longitude
Stars: ✭ 27 (+22.73%)
Mutual labels:  timezone
color-pop
🌈 Automatic Color Pop effect on any image inspired by Google Photos
Stars: ✭ 21 (-4.55%)
Mutual labels:  google-photos
google-photos-vue
Google Photos album viewer built with Vue.js
Stars: ✭ 17 (-22.73%)
Mutual labels:  google-photos
IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (+600%)
Mutual labels:  timezone
geo-sql-database
Continents, Sub-Continents, Countries, States, Cities, Timezones, Currencies SQL database.
Stars: ✭ 30 (+36.36%)
Mutual labels:  timezone
TimeZoneLocate
Time zone for locations offline in Swift (iOS).
Stars: ✭ 30 (+36.36%)
Mutual labels:  timezone
slack-timezone-bot
🤖⏰ Slack bot to show time in users' timezones
Stars: ✭ 51 (+131.82%)
Mutual labels:  timezone

google-photos-timezone-fix

This script iterates over photos in given Google Photos album and edits date/time/timezone of each photo in order to fix their order.

problem

Sometimes photos uploaded to Google Photos are arranged randomly and not based on the time/date that they were taken. This happens due to the fact that timezone included in EXIF is not respected and usually GMT-5 is being used instead, while timezone of the rest of the photos stays as orignally provided.

workaround

  1. Rearrange photos by hand (photos will again appear in wrong order if you will sort album)
  2. Select some/all photos and select "Edit date & time" option and then
  • shift selected photos to another timezone - make sure to not shift photos with correct timezone
  • set one date/time to all photos - your photo timeline will be flatten to one day and still order of the photos might not be correct

Both workarounds are not ideal which led me to implement this script which fixes date/time/timezone of each photo.

prerequisites

  • you need to edit script and set EXPECTED_TZ to desired timezone
  • your photos needs to follow naming pattern YYYYMMDD-HHMMSS-NR, for example: 20170414-204918-2042.jpg
  • you need to install Tampermonkey plugin in your browser (only Chrome was tested)

how it works

  • script iterates over photos of currently open album and executes following steps
  • "Edit date & time" option is selected
  • timezone setting is being checked
  • date/time included in photo filename is being compared with values from the dialog
  • an update is performed in case if timezone/date/time is incorrect
  • changes (if any) are being saved
  • script stops is case of error or when end of album is reached

how to use it

  • open Tampermonkey options and add google-photos-timezone-fix script
  • navigate to https://photos.google.com/ and open album which you want to edit
  • open first photo and open photo details sidebar by clicking "info" icon
  • open browser console and type window.fixAlbum()
  • observe log in browser console for additional info
  • go back to album view and see if the order is corrected (you might need to sort entire album by opening it and selecting "Edit album" > Arrows icon: "Sort photos" > "Oldest first", this time photos will be properly sorted as date/time/timezone got corrected by the script)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].