Closed aymenel closed 4 years ago
I'm sorry I don't understand your request.
From what I can gather, Apple live photos consist of two resources: a JPEG and a 3-second MOV file. Lychee supports both already so the question to the original poster is: is that not sufficient? What sort of support would be needed to give these live photos justice?
Sorry, I don't have an iPhone and I guess neither does @ildyria so you'll need to explain it to us in basic terms :smiley:. It would also be great if you could post sample files as well...
Yes, individually these formats are already supported. But the format involves displaying only photos in the album, and the video is played when you click on the photo. See https://dlaa.me/Samples/live-photo-web/ implementation demo from the repository https://github.com/DavidAnson/live-photo-web
This would implies changes in the front-end and backend (photo - video association). I will be honest I personally will not dedicate time to implement such things. If another member of the team (or someone else) wants to make a PR for it, then maybe it will be merged.
the format involves displaying only photos in the album, and the video is played when you click on the photo.
Sounds (behaviour wise) like a video with a thumbnail.The question would be how to recognise that a user wants to treat that image as the thumbnail vs generating one. That would in turn allow users to pick a thumbnail for their videos though if they really want, rather than putting up with what Lychee extracts.
I do not know how this format is presented in apple, but when exporting, you get two files with the same names MP4 and JPEG. How it looks on the phone can be seen here https://developer.apple.com/live-photos/
Probably the easiest way to implement this would be to provide a "coupling mechanism" that attaches an already uploaded image to an also already uploaded video. A single extra button in the photo view (that only shows for video files) would do, or multiselect and a new context menu entry (that only shows if one image and one video are selected). Until they are attached, they are two separate photo entities in Lychee. Afterwards, I guess the thumb we extracted gets replaced by the image and the separate photo entry is (optionally?) deleted?
A question to the original poster: would you expect the live photos to animate just in the photo view (like videos currently are) or should they also animate in the album view (the view where you see the whole contents of the album, i.e, multiple photos on the screen)?
Also, as @ildyria indicated, don't get your hopes up. We've got a lot of more urgent things to fix/implement first...
IMHO button for combining is not the best solution, for example, I have already gathered several thousand of such photos. Better auto join. For example, according to the model of the camera from exif + the same names in photos and videos. Animation in the thumbnail view will be unnecessary.
Better auto join. For example, according to the model of the camera from exif + the same names in photos and videos.
I see your point, but this feels "clunky". If we were going to auto-join, I'd suggest a setting that does this for all image/video pairs with matching filenames, regardless of metadata. I'd probably also limit it to the initial upload/import step - if there's a pair there, combine them but not if added later.
As indicated, this is not a priority for the core team but we would consider accepting a PR.
That's an interesting idea to support Live Photos. I've spent some time researching and thought it's worth sharing my findings:
Formats: There are different formats by different vendors (next to Apple).
Display Live Photos: There are two npm packages for an easy display of Live Photos
Implementation idea (only first thoughts)
FYI, I moved this issue to the Lychee-Laravel repo so that it doesn't get lost...
Regarding the exiftool support, I just added some comments about it at https://github.com/LycheeOrg/Lychee-Laravel/issues/363#issuecomment-545507833.
Hi,
I’ve just pushed a first version supporting Live Photos (Apple Live Photos and Google Motion Photos) to my repository (branches support-live-photo)
When installing it, you need to run npm install && npm run compile in the frontend and composer install in the backend to update files.
Upload:
Notes:
File samples:
I'll close the issue since we have a first version of live photo implemented.
Сould you implement view live photo from Apple?