Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Linking of IOS Live Photos: MOV/JPGs #14459

Closed
1 of 3 tasks
shaankhosla opened this issue Dec 2, 2024 · 7 comments
Closed
1 of 3 tasks

Incorrect Linking of IOS Live Photos: MOV/JPGs #14459

shaankhosla opened this issue Dec 2, 2024 · 7 comments

Comments

@shaankhosla
Copy link

The bug

I just uploaded my Google Photos album to Immich, and I've noticed that I have countless incorrect links of live photos. For example, I could have a photo IMG_9140.JPG taken on August 15, 2024 merged with IMG_9140, a movie taken September 1, 2024.

I've been going through and manually unlinking them, but two files that have very different creation times shouldn't be linked even though they have the same filename.

The OS that Immich Server is running on

Ubuntu 22 Server

Version of Immich Server

v1.121.0

Version of Immich Mobile App

v1.121.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    volumes:
      - ${IMMICH_UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: unless-stopped
    healthcheck:
      disable: false
    networks:
      - immich

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: unless-stopped
    healthcheck:
      disable: false
    networks:
      - immich

  redis:
    container_name: immich_redis
    image: docker.io/redis:6.2-alpine@sha256:2ba50e1ac3a0ea17b736ce9db2b0a9f6f8b85d4c27d5f5accc6a416d8f42c6d5
    healthcheck:
      test: redis-cli ping || exit 1
    restart: unless-stopped
    networks:
      - immich

  database:
    container_name: immich_postgres
    image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    volumes:
      - ${IMMICH_DB_DATA_LOCATION}:/var/lib/postgresql/data
    healthcheck:
      test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
      interval: 5m
      start_interval: 30s
      start_period: 5m
    command:
      [
        'postgres',
        '-c',
        'shared_preload_libraries=vectors.so',
        '-c',
        'search_path="$$user", public, vectors',
        '-c',
        'logging_collector=on',
        '-c',
        'max_wal_size=2GB',
        '-c',
        'shared_buffers=512MB',
        '-c',
        'wal_compression=on',
      ]
    restart: unless-stopped
    networks:
      - immich

Your .env content

IMMICH_UPLOAD_LOCATION=/data/immich/library
IMMICH_DB_DATA_LOCATION=/data/immich/postgres

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=v1.121.0

DB_PASSWORD=

# don't change
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

  1. Upload a JPG and a MOV with the same filename but different creation times.

...

Relevant log output

No response

Additional information

No response

@mmomjian
Copy link
Contributor

mmomjian commented Dec 2, 2024

What tool / method did you use to upload the Google photos?

@shaankhosla
Copy link
Author

What tool / method did you use to upload the Google photos?

I used immich-go

@mmomjian mmomjian closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2024
@mmomjian
Copy link
Contributor

mmomjian commented Dec 2, 2024

That is not an official immich tool (though we do recommend it!), so it would not be an immich bug as immich does not auto stack as you describe. You can discuss it with immich-go but my guess is that your upload settings were incorrect.

@shaankhosla
Copy link
Author

shaankhosla commented Dec 2, 2024

Doesn't Immich do the auto-linking of JPG/MOV files as live photos? I'm not referring to image stacking, but the linking of mov/jpg files to create a live photo

@mmomjian
Copy link
Contributor

mmomjian commented Dec 2, 2024

It only does that when they’re uploaded through the mobile app, I believe.

@shaankhosla
Copy link
Author

Got it, thanks!

@bo0tzz
Copy link
Member

bo0tzz commented Dec 3, 2024

Immich does link live photos on the server side, but not based on filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants