xob0t / Google-Photos-Toolkit

Userscript to filter, search, organize, or delete your Google Photos library
MIT License
78 stars 3 forks source link

Filter Live Photos (Feature idea) #4

Closed branislav-remen closed 2 weeks ago

branislav-remen commented 2 months ago

Another useful filter would be option to select only Live Photos. Live Photos taken by iPhone contains at least 2 files - image (jpg) and video (mov). Because of the video it takes more space which could be cleaned using Toolkit. Other use case - I would download all live photos and merged them to the one video (for example memories from vacation, etc...)

xob0t commented 2 months ago

Leaving it here for my future self for when i have the time to look into it https://github.com/photoprism/photoprism/files/4048676/iPhone.X.Live.Photo.Samples.zip

xob0t commented 2 months ago

Those 2 files are just that, two separate files, the only common traits seems to be filename and date, so to identify all live photos in a GP library, we would have to scan it whole, then look for img - video pairs with identical dates/filenames. Not an elegant solution, but it would work.

pzemo commented 1 month ago

Live photos have separate icon at the top, maybe it can be searched without downloading? And for saving space it could be great tool to automate slight edit of every live photo what deletes the live part.

xob0t commented 1 month ago

Live photos have separate icon at the top, maybe it can be searched without downloading? And for saving space it could be great tool to automate slight edit of every live photo what deletes the live part.

I've uploaded those samples to my GP, and I don't see any special icons in the web version.

pzemo commented 1 month ago

try with this sample, one iphone's HEIC file combinig movie and picture, and screenshot with live photo icon. Android (samsung, pixel) motion photos has this exact icon too https://we.tl/t-86ReYgGiYD (expires in some days)

xob0t commented 1 month ago

@pzemo the heic file is just 2.5MB, does not seem to include video Apple Live Photo file format

pzemo commented 1 month ago

Hard to share it, its 5.05MB, google compressed its 4.1MB https://photos.app.goo.gl/XXfHS9twRbjoHYhd7

xob0t commented 1 month ago

that did it, thanks!

I don't know why, but just uploading video and audio files does not make GP recognize them as a single live photo. When i download your shared photo, it dls as zip with jpg and mov inside, and if reupload them, GP shows them as two separate media items.

I think i've found how to identify live photos, but seems like deleting the live part would not be trivial, as GP stores them as a single object and the only way to do so seems to be to modify it in some way with the "edit" tool, as GP removes the "live" part on edit. Maybe it would be possible to "edit" them without any actual changes to the image, idk

xob0t commented 2 weeks ago

added live photo filter in #15