phlivephoto

How to make PHLivePhoto from Mov File?

白昼怎懂夜的黑 提交于 2019-12-01 10:50:43
问题 I have a one .MOV file and one .JPG file. When I'm trying to make a Live Photo: func makeLivePhotoFromItems(imageURL: NSURL, videoURL: NSURL, previewImage: UIImage, completion: (livePhoto: PHLivePhoto) -> Void) { PHLivePhoto.requestLivePhotoWithResourceFileURLs([imageURL, videoURL], placeholderImage: previewImage, targetSize: CGSizeZero, contentMode: PHImageContentMode.AspectFit) { (livePhoto, infoDict) -> Void in print("info: \(livePhoto)") if let lp = livePhoto { completion(livePhoto: lp) }

Is there a way to save a Live Photo to the Photo Library?

别等时光非礼了梦想. 提交于 2019-11-30 02:26:45
I'm passing stored image and video files to: PHLivePhoto.requestLivePhotoWithResourceFileURLs and getting a PHLivePhoto object that I can display in PHLivePhotoView . But I am wondering, once I have a PHLivePhoto is there a way to save it to the Photo Library? NSURL *photoURL = ...; NSURL *videoURL = ...; [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAsset]; //These types should be inferred from your files //PHAssetResourceCreationOptions *photoOptions = [[PHAssetResourceCreationOptions alloc] init]; /

Apple Live Photo file format

主宰稳场 提交于 2019-11-27 18:48:47
Apple will introduce Live Photo in iOS 9/iPhone 6s. Where is the file format documented? Here's the link . Otherwise, here's the text: Live Photos Live Photos is a new feature of iOS 9 that allows users to capture and relive their favorite moments with richer context than traditional photos. When the user presses the shutter button, the Camera app captures much more content along with the regular photo, including audio and additional frames before and after the photo. When browsing through these photos, users can interact with them and play back all the captured content, making the photos come

Working with Live Photos in Playground

放肆的年华 提交于 2019-11-27 08:03:58
I've done a fair amount of searching the web, but I'm currently attempting to work with "Live Photos" in Playground. I'm aware of the framework (PHLivePhoto), I just have no clue if working with them in Playground is possible due to that fact that there's not much to "import" as there doesn't seem to be any "Live Photos" available for download online. Any ideas? It's possible to make and view a PHLivePhoto in the Playground from the elements of an actual Live Photo . In OS X's Photos app, select a Live Photo and go to menu File > Export > Export original... It will create a .JPG and a .mov .

Apple Live Photo file format

给你一囗甜甜゛ 提交于 2019-11-26 19:40:57
问题 Apple will introduce Live Photo in iOS 9/iPhone 6s. Where is the file format documented? 回答1: Here's the link. Otherwise, here's the text: Live Photos Live Photos is a new feature of iOS 9 that allows users to capture and relive their favorite moments with richer context than traditional photos. When the user presses the shutter button, the Camera app captures much more content along with the regular photo, including audio and additional frames before and after the photo. When browsing

Working with Live Photos in Playground

纵饮孤独 提交于 2019-11-26 17:43:58
问题 I've done a fair amount of searching the web, but I'm currently attempting to work with "Live Photos" in Playground. I'm aware of the framework (PHLivePhoto), I just have no clue if working with them in Playground is possible due to that fact that there's not much to "import" as there doesn't seem to be any "Live Photos" available for download online. Any ideas? 回答1: It's possible to make and view a PHLivePhoto in the Playground from the elements of an actual Live Photo . In OS X's Photos app