Questions tagged [phlivephoto]

57 questions
30
votes
6 answers

Apple Live Photo file format

Apple will introduce Live Photo in iOS 9/iPhone 6s. Where is the file format documented?
Clay Bridges
  • 10,746
  • 10
  • 62
  • 110
18
votes
1 answer

Working with Live Photos in Playground

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…
Idris
  • 1,358
  • 2
  • 11
  • 21
11
votes
3 answers

Can I put a live photo into the iOS Simulator?

I want to create an app to display a live photo. But I don't have an iPhone 6S. Is there a opportunity to put a live photo into the iOS Simulator? Thanks!
Beeke
  • 134
  • 1
  • 11
9
votes
2 answers

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

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…
keegan3d
  • 7,917
  • 6
  • 48
  • 70
8
votes
4 answers

How to Get Video from a Live Photo in iOS

I'm trying to figure it out, but can't find any useful information. I only found this: PHAssetResourceManager.defaultManager().writeDataForAssetResource(assetRes, toFile: fileURL, options: nil, completionHandler: { // Video file has been…
Benny
  • 571
  • 1
  • 5
  • 12
7
votes
1 answer

Process Live Photos on multiple threads

I am processing a PHLivePhoto using .frameProcessor to modify each frame. The frames appear to be processed in sequence, which is slow. Can I get PHLivePhotoEditingContext.frameProcessor to take advantage of more than one core? func…
Henrik
  • 3,449
  • 22
  • 42
7
votes
3 answers

Extract video portion from Live Photo

Has anyone figured out how to extract the video portion from a Live Photo? I'm working on an app to convert Live Photos into a GIF, and the first step is to get the video file from the Live Photo. It seems like it should be possible, because if you…
JYeh
  • 4,113
  • 2
  • 24
  • 40
6
votes
0 answers

Issue converting video to live photo to wallpaper

I'm using this way of converting a video + image to live photo. It adds the needed metadata to the video and still image. It exports the new video with the correct metadata using AVAssetExportPresetPassthrough so the codec settings shouldn't be…
Nilsymbol
  • 447
  • 1
  • 9
  • 24
6
votes
0 answers

How to save home-made live photos in album?

I try to make live photos with a JPG file and a MOV file.Like this: CGSize targetSize = CGSizeZero; PHImageContentMode contentMode = PHImageContentModeDefault; __weak NSURL *videoUrl; __weak NSURL *photoUrl; // Call private…
EricZhao
  • 542
  • 4
  • 13
5
votes
0 answers

Live Photo From NSData

I store live photos on the server as they come, with two separate files a JPG, and MOV file. When i retrieve them i am left with NSData, which is where my issue arises, i don't know how to create a PHLivePhoto out of that data. Here is how i create…
Sam Bing
  • 2,437
  • 17
  • 27
4
votes
1 answer

Convert a video into an IOS Live Photo format without an Apple device

I'm currently making live/animated wallpapers for Android phones, which is pretty easy with GIF/Mp4 files. But I would also like to make the live wallpapers compatible natively with ios/iPhones. I've seen many tutorials on how to convert a video to…
Yokiie
  • 41
  • 2
4
votes
1 answer

How to disable the Haptic Feedback when playing a Live Photo

In my app, I allow the user to play Live Photos from their photo library. To do this, I use the following: @IBOutlet weak var livePhotoView: PHLivePhotoView! @objc func handleTapGesture(_ recognizer: UITapGestureRecognizer) { if let currentType…
HemOdd
  • 424
  • 1
  • 6
  • 15
3
votes
1 answer

Invalid image metadata when try to display a livephoto with PHLivePhotoView objective-c

I am trying to load a jpg image together with a mov file with objective-c on ios device to display a live photo, and I make following code snippet to do that in viewDidLoad function: - (void)viewDidLoad { [super viewDidLoad]; …
armnotstrong
  • 7,047
  • 10
  • 51
  • 108
3
votes
0 answers

Possible to view & edit Apple iOS Live Photos on a Windows machine, C#, or other OS?

Is there any way to programmatically view, manage, and edit Apple iOS Live Photos on a Windows-based platform? Any detailed information on the file structure, and how to access it would be appreciated. (Is it simply a MOV or is it an array of still…
halfbit
  • 54,462
  • 46
  • 195
  • 426
2
votes
1 answer

SwiftUI: how to resize the UIViewRepresentable output?

I try to build a basic Live Photo app on SwiftUI and struggle with display of the selected photo. To do so I tried to make UIViewRepresentable for PHLivePhotoView: import SwiftUI import PhotosUI struct LivePhotoView: UIViewRepresentable { …
1
2 3 4