Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
britiscurious opened this issue Oct 22, 2019 · 4 comments
Open

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

britiscurious opened this issue Oct 22, 2019 · 4 comments

Comments

@britiscurious
Copy link

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

@abentele
Copy link

it's the same issue as abentele/PhotosExporter#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
Copy link

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
Copy link

abentele commented Oct 27, 2019

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
Copy link
Author

britiscurious commented Jan 22, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants