simulot / immich-go

An alternative to the immich-CLI command that doesn't depend on nodejs installation. It tries its best for importing google photos takeout archives.
GNU Affero General Public License v3.0
1.85k stars 55 forks source link

Imported albums got current date #24

Closed papinist closed 11 months ago

papinist commented 1 year ago

Hi, I imported my google photos takeout, and noticed that all albums have yesterday's date instead of the original creation date. Actually I don't know if it's an info that you can get from anywhere, but in this case you could use the date from the oldest photo in that album? I can't find in immich a way to change that date..

simulot commented 1 year ago

Thank @papinist for testing the project.

If you mean about google album's creation date? In my takeout, date is missing. Could you share the metadata.json file content?

papinist commented 1 year ago

Yes probably this is a date that isn't present in google albums. My question was because immich probably has a bug: even ordering album per "most recent photos" I got an album order that appears to be random (first album has pictures from 2020, while I have albums with very recent photos). Having uploaded all my pictures yesterday, both "created date" and "updated date" report yesterday date. I don't know how to fix that honestly.

simulot commented 1 year ago

My guess is that Immich uses photo's take of take to sort albums. Can you look at you photos and check:

papinist commented 1 year ago

Sorry for the late reply. got this picture as example: IMG_20161119_195330

immich reports date correclty image

also exiftool has correct date

ExifTool Version Number         : 12.67
File Name                       : IMG_20161119_195330.jpg
Directory                       : P:/Takeout/Takeout/Google Foto/1░ raduno Mustang6g Toscana - Calenzano
Warning                         : FileName encoding not specified
File Size                       : 1191 kB
File Modification Date/Time     : 2023:09:28 05:26:34+02:00
File Access Date/Time           : 2023:10:10 21:15:45+02:00
File Creation Date/Time         : 2023:10:01 01:59:36+02:00
File Permissions                : -rw-rw-rw-
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Exif Byte Order                 : Big-endian (Motorola, MM)
Make                            : LGE
Camera Model Name               : Nexus 5
Orientation                     : Horizontal (normal)
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : HDR+ 1.0.118402515y
Modify Date                     : 2016:11:19 19:53:32
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/23
F Number                        : 2.4
Exposure Program                : Program AE
ISO                             : 524
Exif Version                    : 0210
Date/Time Original              : 2016:11:19 19:53:32
Create Date                     : 2016:11:19 19:53:32
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/23
Aperture Value                  : 2.4
Max Aperture Value              : 2.4
Subject Distance                : 0 m
Metering Mode                   : Center-weighted average
Flash                           : Off, Did not fire
Focal Length                    : 4.0 mm
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 3286
Exif Image Height               : 2432
Sensing Method                  : One-chip color area
Scene Type                      : Directly photographed
Custom Rendered                 : Custom
Exposure Mode                   : Auto
Digital Zoom Ratio              : 1
Scene Capture Type              : Standard
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
Subject Distance Range          : Unknown
Image Unique ID                 : 991f21e070c49ae20000000000000000
Offset Schema                   : 12
GPS Version ID                  : 2.2.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 18:53:30
GPS Dilution Of Precision       : 7
GPS Img Direction Ref           : Magnetic North
GPS Img Direction               : 184
GPS Processing Method           : fused
GPS Date Stamp                  : 2016:11:19

data from image json file:

{
  "title": "IMG_20161119_195330.jpg",
  "description": "",
  "imageViews": "255",
  "creationTime": {
    "timestamp": "1479640469",
    "formatted": "20 nov 2016, 11:14:29 UTC"
  },
  "photoTakenTime": {
    "timestamp": "1479581612",
    "formatted": "19 nov 2016, 18:53:32 UTC"
  },
  "geoData": {
    "latitude": 43.8471639,
    "longitude": 11.1746722,
    "altitude": 100.0,
    "latitudeSpan": 0.0,
    "longitudeSpan": 0.0
  },
  "geoDataExif": {
    "latitude": 43.8471639,
    "longitude": 11.1746722,
    "altitude": 100.0,
    "latitudeSpan": 0.0,
    "longitudeSpan": 0.0
  },
  "url": "https://photos.google.com/photo/xxxxxxxxxxxxxxxxxxx",
  "googlePhotosOrigin": {
    "webUpload": {
      "computerUpload": {
      }
    }
  }
}

and from album's metadata.json (actually it's called "metadati.json" in italian)

{
  "title": "1° raduno Mustang6g Toscana - Calenzano",
  "description": "",
  "access": "",
  "date": {
    "timestamp": "0",
    "formatted": "1 gen 1970, 00:00:00 UTC"
  },
  "location": "",
  "geoData": {
    "latitude": 0.0,
    "longitude": 0.0,
    "altitude": 0.0,
    "latitudeSpan": 0.0,
    "longitudeSpan": 0.0
  }
}

Album in immich reports correct date (actually it's the date of all pictures) image

but in albums list there's the creation date (updated date is when I removed the video with wrong date) image

Sorry for the long post!

simulot commented 11 months ago

@papinist is this problem still current?

papinist commented 11 months ago

I just did one big import of all my google photos images and albums, so I don't know if importing now is different. Also, I'm still on Immich 1.83 because of the breaking changes with newer versions..

simulot commented 11 months ago

Well, I close this issue. Feel free to reopen it