immich icon indicating copy to clipboard operation
immich copied to clipboard

[Feature]: Auto detect LivePhoto upload from WEB and CLI

Open nullket opened this issue 2 years ago • 4 comments

Feature detail

As part of my old photo management I simply downloaded all my photos from the iCloud. For LivePhotos this results in a .JEPG and a .MOV file. Uploading those two files via the web interface does NOT result in a single LivePhoto in immich but remains separated as two entries: a small video and a still image. The LivePhoto upload seems to be limited to the mobile app.

Platform

Web

nullket avatar Dec 28 '22 10:12 nullket

Yes, currently, the LivePhotos upload is limited to the mobile app.

I will put this feature into the todo list

alextran1502 avatar Dec 28 '22 16:12 alextran1502

@nullket if you don't want to wait, you can still link them yourself. I mentioned it in this comment .

PeterBasista avatar Dec 29 '22 06:12 PeterBasista

@nullket if you don't want to wait, you can still link them yourself. I mentioned it in this comment .

Thanks! I was already looking for a workaround. I will have a look into this (looks a bit challenging as I am not using direct sql queries very often).

nullket avatar Dec 29 '22 08:12 nullket

On Discord, i proposed a method of coupling Live Photo files together by its ContentIdentifier attribute.

Apple generates unique ids for image and video part of Live Photo (for the reference: https://stackoverflow.com/a/47629868/3384936).

With this in mind, there should be a way of uploading parts of Live Photos separately and Immich should be able to pair them on Database level.

For example: store ContentIdentifier as a column in DB and use JOINS to generate pairs of photo and video

Copy of Live Photo File has the same ContentIdentifier so this could also identify duplicates of these photos (nice little side effect?)

erikibolya avatar Jan 21 '23 21:01 erikibolya

Did anyone end up finding a reliable to way to get photos from iCloud Photos into Immich, while preserving the live photos?

nep2ner avatar Feb 06 '23 21:02 nep2ner

Maybe there is a way to download the photos from iCloud to the iPhone in batches and let the Immich app do the uploading?

nep2ner avatar Feb 06 '23 21:02 nep2ner

If you still have them in the iCloud just sync them to the iOS app and upload them with the iOS Immich app. Immich supports Live Photos well if you upload them using the app.

I had previously downloaded Live Photos from the iCloud via the browser and then deleted the originals from the cloud. This resulted in two local files (a jpg and a mov). Unfortunately, reuploading them to the icloud did not work. But the original macOS photo app imports those two files and recreates a Live Photo as expected, using the iCloud photo sync I was then able to resync a real iOS Live Photos back on my iPhone where I finally used Immich to upload everything. A bit of back and forth but it worked for me without being scarred of breaking my database with custom sql queries, I do not fully understand.

nullket avatar Feb 06 '23 21:02 nullket