Gallery icon indicating copy to clipboard operation
Gallery copied to clipboard

Add Motion Photo / Live Image Support

Open Naomitr0n opened this issue 7 months ago • 5 comments

Checklist

  • [ X ] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [ Is the FAQ the same one as the last checklist item? Not clear on that, but if it is then yes I have, otherwise please guide me to it ] I have read the FAQ and my problem isn't listed.
  • [ X ] I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise.
  • [ X ] This issue contains only one feature request.
  • [ X ] I have read and understood the contribution guidelines.

Is your feature request related to a problem? Please describe.

Motion photos / live images aren't supported. See also Simple Gallery Issue 1426

Describe the solution you'd like

When a motion photo is shown in the image view (not the folder view), show the stationary image for a half second, then show the video, then back to the image. This is how the stock LG Gallery app works (I can take a screen recording video of this behavior if it would be helpful)

Describe alternatives you've considered

Aves supports this feature (and is also FOSS), but the interface is very, very different than the stock gallery app. I am not aware of any other non-OEM apps that support motion photos, even paid ones. I believe Aves to be the only Android app so far, which is tested and confirmed working correctly on the images I've attached to this issue ticket, which is useful for both testing purposes and having a frame of reference for how a different app is doing it.

Additional context

There's a very detailed and helpful comment on the Simple Gallery issue that seems promising. For videos embedded in the JPG itself, it's best to search through the file for a predefined character code (EXIF data isn't always available nor helpful from what I gathered). LG V60 motion photos like the two I've attached have ftypmp4 plainly visible in a hex editor. I believe there are a few open source tools for Windows made specifically to extract the MP4 from these motion photos, though I haven't used them to confirm if they work.

Given the edit functionality to this app, I strongly encourage some kind of message to the user telling them how live images are handled and letting them choose how to proceed. I've been known to resize my live photos to 100% just to remove the video portion from time to time, but perhaps it's possible to change the orientation/size of videos along with the image? How edits are handled are probably better in a discussion or different issue ticket, I imagine a good "for now" fix is to just warn the user that any edits will remove the video part of the motion photo, and allow them to save edits to a new image instead of an overwrite, then let them decide what to do.

I've also attached a couple motion images that I took specifically to help test any implementations out. If displayed correctly, you get the context leading up to the captured image. There's a purple mat the camera is on at the beginning of the video in the first one of Cleo yawning, and in the second one of her brother biting my finger, she's in focus looking at him before he lifts his head up when the video part starts. Cat tax and all :)

1010231121 0402231724c

Naomitr0n avatar Jan 05 '24 16:01 Naomitr0n