RhetTbull / osxphotos

Python app to work with pictures and associated metadata from Apple Photos on macOS. Also includes a package to provide programmatic access to the Photos library, pictures, and metadata.
MIT License
2.15k stars 99 forks source link

Sync the "Saved from [application]" information #1654

Open justaLoli opened 2 months ago

justaLoli commented 2 months ago

iPhone is bad at differentiating photos saved from different applications. it uses a strange Saved from [app name] feature. you can find this information if you look at the detail of a photo and scroll to the bottom. This is not a keyword nor an album, so if i sync my photos from iphone to mac, even with the current osxphotos sync function, this information will be lost, and photos from different apps will be indistinguishable.

i dont exactly know how to come around this. if the mac version of Photo also have this "Saved from XXX" feature, i hope this information could be imported. if not, maybe we can add the application name into the keyword or create a new album titled the application name, which will end up with similar effect.

RhetTbull commented 2 months ago

This is available in the database but OSXPhotos does not currently process it. It's in ZADDITIONALASSETATTRIBUTES.ZIMPORTEDBYDISPLAYNAME column. Will add this when I get a chance. It's not possible to set this value during sync but once OSXPhotos can read it, one could create a keyword as you suggest or create an album: for example {photo.importedby}

RhetTbull commented 2 months ago

@all-contributors please add @justaLoli for ideas

allcontributors[bot] commented 2 months ago

@RhetTbull

I've put up a pull request to add @justaLoli! :tada: