Questions tagged [phlivephoto]
55 questions
38
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
- 11,602
- 10
- 68
- 118
19
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,658
- 4
- 16
- 21
13
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
- 163
- 1
- 11
10
votes
5 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
- 695
- 2
- 6
- 19
10
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
- 10,357
- 9
- 53
- 77
9
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,273
- 3
- 27
- 40
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,908
- 27
- 48
7
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
- 515
- 1
- 9
- 25
7
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,794
- 1
- 19
- 29
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
- 746
- 7
- 16
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
- 697
- 1
- 7
- 23
3
votes
2 answers
Can't generate live photo in iOS 15.1
Work well in iOS 15.0 but after upgrading to iOS 15.1, the codes can't get worked.
_ = PHLivePhoto.request(withResourceFileURLs: [pairedVideoURL, pairedImageURL], placeholderImage: nil, targetSize: CGSize.zero, contentMode:…

David Wang
- 934
- 1
- 12
- 16
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
- 8,605
- 16
- 65
- 130
3
votes
1 answer
Displaying a Live Photo, swift
I have the following ViewController class I am trying to get to display a live photo. I am not precisely sure how to actually get the image to show In dealing with a UIImageView I would write something like this:
let image = UIImage(imageNamed:…

Gugulethu
- 1,426
- 3
- 18
- 36