immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
52.66k stars 2.79k forks source link

Duplicate images on iOS when saving to device #14357

Open ryan1894 opened 3 hours ago

ryan1894 commented 3 hours ago

The bug

I have pictures mounted as external library in immich. When opening the iOS app, clicking on a photo that exists only on the remote, and pressing the save to device button (cloud with down arrow inside on the top right), the image successfully downloads to my iOS photos library. However, on my Immich timeline, there are now two images:

The checksums are also different. I'm also aware of this thread. I don't have a photostream option to disable.

When accessing the images via web browser, they appear as distinct assets.

The OS that Immich Server is running on

iOS 17.6.1

Version of Immich Server

v1.121.0

Version of Immich Mobile App

1.121.0 build.184

Platform with the issue

Your docker-compose.yml content

can add if relevant

Your .env content

can add if relevant

Reproduction steps

  1. Mount immich external library
  2. View image via iOS app (name: DSC....jpeg)
  3. Press save image button

Relevant log output

original remote image
{
  "id": 3663,
  "remoteId": "c69c8347-b27e-4b38-91ee-338fc76c9e5d",
  "localId": "N/A",
  "checksum": "Gvx5j+yAZAK50mVzvqTEJT11qc0=",
  "ownerId": -2814522093344370725,
  "livePhotoVideoId": "N/A",
  "stackId": "N/A",
  "stackPrimaryAssetId": "N/A",
  "stackCount": "0",
  "fileCreatedAt": "2024-11-20 20:23:04.000",
  "fileModifiedAt": "2024-11-20 20:23:04.000",
  "updatedAt": "2024-11-25 20:06:09.294",
  "durationInSeconds": 0,
  "type": "AssetType.image",
  "fileName": "DSC03769.jpg",
  "isFavorite": false,
  "isRemote": true,
  "storage": "AssetState.remote",
  "width": 3600,
  "height": 1440,
  "isArchived": false,
  "isTrashed": false,
  "isOffline": false,
}```

new asset that i don't want to exist
```{
  "id": 12822,
  "remoteId": "6a9d00c5-1e4e-4ca5-991e-c44312c88727",
  "localId": "41C13884-504B-49EE-AC99-F3DDB929A8FC/L0/001",
  "checksum": "j9Dbqw+J6AeE+/ThrExtIjCj5Y0=",
  "ownerId": -2814522093344370725,
  "livePhotoVideoId": "N/A",
  "stackId": "N/A",
  "stackPrimaryAssetId": "N/A",
  "stackCount": "0",
  "fileCreatedAt": "2024-11-20 20:23:04.000",
  "fileModifiedAt": "2024-11-25 20:09:35.000",
  "updatedAt": "2024-11-25 20:09:48.541",
  "durationInSeconds": 0,
  "type": "AssetType.image",
  "fileName": "IMG_6509.JPG",
  "isFavorite": false,
  "isRemote": true,
  "storage": "AssetState.merged",
  "width": 3600,
  "height": 1440,
  "isArchived": false,
  "isTrashed": false,
  "isOffline": false,
}```

Additional information

No response