photossync / PhotosSync

Export and synchronization tool for the macOS Photos app
11 stars 1 forks source link

wish: consider all photo objects incl. burst series #1

Open britiscurious opened 4 years ago

britiscurious commented 4 years ago

Still a wish from my side: all burst series photos should be exported, too.

abentele commented 4 years ago

it's the same issue as https://github.com/abentele/PhotosExporter/issues/3, closed because there likely will be no solution for it until Apple will change it's API. I'm sure I don't want to implement any hack (i.e. implementation without using any public API), only to get those burst photos, because hacks likely don't work with any next major macOS release (e.g. the database of Photos was completely restructured with macOS Catalina).

Do you have any idea how to solve this issue?

abentele commented 4 years ago

btw.: do you use PhotosSync? PhotosSync is intended to replace https://github.com/abentele/PhotosExporter in future, but not now. You still can use it, but it's not yet documented like PhotosExporter.

abentele commented 4 years ago

with macOS 10.15 "Catalina", it seems Apple replaced the MediaLibrary (now deprecated) with PhotoKit. While the MediaLibrary is "only" deprecated, I've already observed some broken API's (e.g. API to get media object keywords). To fix it, and be ready for future macOS releases, I will investigate in replacing the Media Library with PhotoKit API.

Maybe this will the base to also fix this issue.

britiscurious commented 4 years ago

With PhotoKit exporting all burst series images is simple. Just add the corresponding fetch option.

let fetchOptions = PHFetchOptions()
fetchOptions.includeAllBurstAssets=true
let allAssets = PHAsset.fetchAssets(with: fetchOptions)