You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, i have feature get livephoto from gallery (only ios), then edit image and save to temp new image file (clean exif metadata) , then generate new video file by livephoto video (also clear exif info).
then i call PhotoManager.editor.darwin.saveLivePhoto try save livephoto to gallery.
LivePhoto.generate(from: photoURL, videoURL: videoURL, progress: { percent in }, completion: { livePhoto, resources in
// Display the Live Photo in a PHLivePhotoView
livePhotoView.livePhoto = livePhoto
// Or save the resources to the Photo library
LivePhoto.saveToLibrary(resources)
})
call generate method then call PhotoManager.editor.darwin.saveLivePhoto , it will save livephoto to gallery successed in sometime
but LivePhoto.generate will failed if video size to large, like 4k video will fail.
so, i want to know is PhotoManager will also handle set the asset id to image and video logic? i try to read the source code, but i am not familiar with ios, so anyone can help me to know? thx
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi, i have feature get livephoto from gallery (only ios), then edit image and save to temp new image file (clean exif metadata) , then generate new video file by livephoto video (also clear exif info).
then i call PhotoManager.editor.darwin.saveLivePhoto try save livephoto to gallery.
but i will get this error
but if i use some swift code like https://github.com/LimitPoint/LivePhoto
call generate method then call PhotoManager.editor.darwin.saveLivePhoto , it will save livephoto to gallery successed in sometime
but LivePhoto.generate will failed if video size to large, like 4k video will fail.
so, i want to know is PhotoManager will also handle set the asset id to image and video logic? i try to read the source code, but i am not familiar with ios, so anyone can help me to know? thx
Beta Was this translation helpful? Give feedback.
All reactions