immich icon indicating copy to clipboard operation
immich copied to clipboard

[BUG] Images in incorrect order

Open gabriel-gfs opened this issue 2 years ago • 4 comments

Describe the bug These two pictures have a certain timestamp they appear in the wrong order in immich. 20220819-IMG_9066

20220819_121927

Task List

  • [x] I have read thoroughly the README setup and installation instructions.
  • [x] I have included my docker-compose file.
  • [x] I have included information on my machine, and environment.
version: "3.8"

services:
  immich-server:
    image: altran1502/immich-server:latest
    entrypoint: ["/bin/sh", "./start-server.sh"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    depends_on:
      - redis
      - database
    restart: always

  immich-microservices:
    image: altran1502/immich-server:release
    entrypoint: ["/bin/sh", "./start-microservices.sh"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    image: altran1502/immich-machine-learning:release
    entrypoint: ["/bin/sh", "./entrypoint.sh"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    depends_on:
      - database
    restart: always

  immich-web:
    image: altran1502/immich-web:release
    entrypoint: ["/bin/sh", "./entrypoint.sh"]
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2
    restart: always

  database:
    container_name: immich_postgres
    image: postgres:14
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      PG_DATA: /var/lib/postgresql/data
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

  immich-proxy:
    container_name: immich_proxy
    image: altran1502/immich-proxy:release
    ports:
      - 2283:80
    logging:
      driver: none
    depends_on:
      - immich-server
    restart: always

volumes:
  pgdata:

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior The images appear in correct order.

System

  • Phone OS: Android 12/12L
  • Server Version: v1.28.2

gabriel-gfs avatar Sep 11 '22 13:09 gabriel-gfs

Hi @gabriel-gfs, the file 20220819-IMG_9066 is not found. Can you re-upload again?

panoti avatar Sep 12 '22 12:09 panoti

Hi @gabriel-gfs Here are the two timestamp I have after uploading by the web app

Image 1

Screen Shot 2022-09-12 at 23 41 39

EXIF

Screen Shot 2022-09-12 at 23 46 57

TIFF

Screen Shot 2022-09-12 at 23 45 55

Image 2

Screen Shot 2022-09-12 at 23 41 47

EXIF

Screen Shot 2022-09-12 at 23 46 30

TIFF

Screen Shot 2022-09-12 at 23 46 19

Which one do you expect to be the correct one?

@panoti I think this is the problem, you faced, correct?

alextran1502 avatar Sep 13 '22 04:09 alextran1502

@alextran1502 same as me. It comes from time zone problem. But idk whether @gabriel-gfs is talking about that or not.

panoti avatar Sep 13 '22 07:09 panoti

Hi @gabriel-gfs Here are the two timestamp I have after uploading by the web app

Image 1

Screen Shot 2022-09-12 at 23 41 39

EXIF

Screen Shot 2022-09-12 at 23 46 57

TIFF

Screen Shot 2022-09-12 at 23 45 55

Image 2

Screen Shot 2022-09-12 at 23 41 47

EXIF

Screen Shot 2022-09-12 at 23 46 30

TIFF

Screen Shot 2022-09-12 at 23 46 19

Which one do you expect to be the correct one?

@panoti I think this is the problem, you faced, correct?

image This is the order that is displayed in the timeline of immich, ergo the picture with the later timestamp is displyed earlier than the picture wiht the earlier timestamp.

gabriel-gfs avatar Sep 13 '22 08:09 gabriel-gfs

@gabriel-gfs I think the order is correct, since each image grid starting to display the latest in the day and progress to display the later one. Just like you see the latest images on first, follow by the older images

alextran1502 avatar Oct 01 '22 01:10 alextran1502

Close with the reason mentioned above

alextran1502 avatar Oct 12 '22 10:10 alextran1502

Sry i didnt respond earlier. The issue does not appear to be fixed. The images are not in the correct order as this is not in the timeline but rather in a album where the timeline is the other way around so the later image should appear later and not earlier.

gabriel-gfs avatar Oct 12 '22 10:10 gabriel-gfs

Screenshot 2022-10-12 122217 As is probably visible in this there should be no sorting in which this is the correct order as the timestamps are all over the place

gabriel-gfs avatar Oct 12 '22 10:10 gabriel-gfs

Would you be able to provide that full set of photos so we have more of a dataset to test against?

zackpollard avatar Oct 12 '22 11:10 zackpollard

Sent it via Discord

gabriel-gfs avatar Oct 12 '22 11:10 gabriel-gfs

Fixed in #1326

alextran1502 avatar Jan 17 '23 15:01 alextran1502

Screenshot 2022-10-12 122217 As is probably visible in this there should be no sorting in which this is the correct order as the timestamps are all over the place

These pictures remain in incorrect order as you can see in this image

gabriel-gfs avatar Jan 19 '23 09:01 gabriel-gfs

@gabriel-gfs

Is this the new upload or from the original upload? The fix doesn't applied automatically to the older photos, only to the new upload. We are planning to add a new job to rescan all exif data

alextran1502 avatar Jan 19 '23 09:01 alextran1502

No these are old pictures. Thanks for the information. I'll be looking forward to that job. 🤗

gabriel-gfs avatar Jan 19 '23 09:01 gabriel-gfs