immich-app / immich

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

[BUG] Uploading videos from iCloud Shared Albums causes metadata issues #552

Open TCVinNYC opened 1 year ago

TCVinNYC commented 1 year ago

Describe the bug After the phone uploads a Cinematic Video, Immich plays it back in a lower resolution on both the web & app (assuming it's the conversion of MOV to MP4). When attempting to download, it downloads the lower-resolution version on web and mobile. This download also does not have the metadata as the original. Immich also organizes it on a different date category.

Task List

Please complete the task list below. We need this information to help us reproduce the bug or point out problems in your setup. You are not providing enough info may delay our effort to help you.

To Reproduce Steps to reproduce the behavior:

  1. Have the phone upload the Cinematic Video.
  2. Watch on mobile or the web.
  3. Attempt to look at metadata and download.
  4. Compare the size and metadata differences.

Expected behavior Immich should download the original video when requested. It should also have metadata on the converted video and organize it with the proper date.

Screenshots Added screenshots of Immich metadata vs Photos app.

System

Additional context Links to metadata comparison.

Original Video https://www.metadata2go.com/result/71aedb6e-cb57-4df2-bda7-29ac142cdde8

Downloaded Video from Immich Web https://www.metadata2go.com/result/581b9b40-9174-4e76-9295-00615f25afb4

Video Links (FullSizeRender is the original Cinematic video, while the other is Immich's) https://drive.google.com/drive/folders/1_nYIfNivxOX84uPoFTwoKnwuj-mPj_lU?usp=sharing

panoti commented 1 year ago

Hi @TCVinNYC, what downloader have you used to download? I've tried upload your video and download it. Both files are the same hash.

TCVinNYC commented 1 year ago

Microsoft Edge 104.0.1293.70

TCVinNYC commented 1 year ago

We found out that uploading assets from iCloud Shared Albums seems causes file name and metadata issues. The filename is read as "FullSizeRender" and the date + time is from the last modified date of the said Shared Album.

For now the fix is to not select any Shared Albums from iCloud when uploading to Immich.

m4rkv5 commented 1 year ago

Every Photo which I upload with the iOS app that has been edited within the photos app gets the title FullSizeRender.jpg. I can reproduce it. Unedited Photos keep their original file names.

iOS 1.37.1 build.74 Server v1.37.0

alextran1502 commented 1 year ago

Every Photo which I upload with the iOS app that has been edited within the photos app gets the title FullSizeRender.jpg. I can reproduce it. Unedited Photos keep their original file names.

iOS 1.37.1 build.74

Server v1.37.0

I think this is the expected behavior of the edited file

m4rkv5 commented 1 year ago

But the name in the photos app doesn't change when you edit a photo. 50% of my immich library has the same name Fullsizerender.jpg. When I download photos via web these have the same name.

When I upload the same pictures in Synology Photos, all photos keep their original IMG... name and a different resolution. The size is the same.

image

image

mckennajones commented 1 year ago

I'm noticing the same behavior. In addition to iOS photos that I have edited, I notice the same fullSizeRender name for photos that have been saved to my apple photos library from Google Photos.

logaritmisk commented 1 year ago

I have the same issue, I also use Pixelmators Photo app to edit my photos so almost all of the photos I want to backup is named FullSizeRender.jpg.

This gave my another issue as well. As the storage template use the date and filename only one photo per day could be saved as the where overwritten (ex. if I have taken two photos first of January and both had been edited, they would be saved to 2023/2023-01-01/FullSizeRender.jpg).

I found a workaround by changing the storage template to include the timestamp as well. But this feels awkward and I'm not sure this will make the issue go away. There is a possibility that I have two photos taken within them same second.

benjamonnguyen commented 4 months ago

Just to clarify the expected behavior, should I expect the download option to download the original media? I am getting the transcoded video file instead.