Questions tagged [phphotolibrary]

The PHPhotoLibrary framework provides interfaces for viewing, editing and creating assets and collections managed by the IOS Photos app.

196 questions
1
vote
0 answers

PHPhotoLibrary: error creating collection list

I am trying to create a collection list in Photos which will have multiple albums. The code to create the collection list is as follows: __block NSString * localId; NSError *createFolderError; [[PHPhotoLibrary sharedPhotoLibrary]…
Harish J
  • 525
  • 1
  • 4
  • 16
1
vote
0 answers

Capture Filtered Image with GPUImage and Save to Photo Library with Metadata

I am developing a simple came app for iOS 10. I need to live filter a camera feed, and then capture and save the filtered image. Using GPUImage, I have been able to setup the live feed and the image capture using GPUImageStillCamera. I am also…
Chase McCoy
  • 1,550
  • 2
  • 13
  • 16
1
vote
1 answer

Move instead of copy to PHPhotoLibrary

My iOS app records a video (in NSTemporaryDirectory()/...) and I want to save it to the camera roll. This works fine but to save disk space I would like to move the file to the camera roll, not copy it. Is that possible?
Thomas
  • 8,306
  • 8
  • 53
  • 92
1
vote
1 answer

iOS 9 PHAssetChangeRequest creationRequestForAssetFromVideoAtFileURL: fails with error code -1

I'm using below code to save a video to photo library. NSString *ss = [finalVideoURL path]; __block PHObjectPlaceholder *placeholder; [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetChangeRequest* createAssetRequest…
A.Vijay
  • 21
  • 6
1
vote
1 answer

Adding or overwriting GPS metadata without losing any other data and save with PHPhotoLibrary

Currently I'm changing over from ALAssetsLibrary to PHPhotoLibrary. I want to add or overwrite GPS metadata on JPEG file without losing any other data. With ALAssetsLibrary, we could do it like below - (void)saveImageDataToPhotoAlbum:(NSData…
M.Masa
  • 532
  • 4
  • 20
1
vote
2 answers

What triggers Photo Library authorization request? iOS

Is there a way to find what triggers Photo Library authorization request? I can't find what line exactly triggers the permission request for Photo Library. I've searched workspace for [PHPhotoLibrary requestAuthorization] - no luck. What should I…
kerd
  • 307
  • 2
  • 13
1
vote
1 answer

When is PHPhotoLibraryChangeObserver photoLibraryDidChange: called?

I am developing an iOS app with the Photos framework, and I am trying to get the change observer working. I am registering the change observer with this call [[PHPhotoLibrary sharedPhotoLibrary] registerChangeObserver:self];. After registering the…
haplo1384
  • 1,206
  • 1
  • 12
  • 29
1
vote
0 answers

Failed to save UIImage in Photo Library in swift

I am using swift PHPhotoLibrary class to save image in photo library. Below is my code: PHPhotoLibrary.sharedPhotoLibrary().performChanges( { let assetCreation = PHAssetCreationRequest.creationRequestForAssetFromImage(self.photoView.image!) …
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
1
vote
2 answers

Dsiable Authorization request when deleting PHAsset

I have an application that deletes photos from the camera roll. This wipe is initiated remotely. Due to this if a wipe is initiated and the user is not at their phone they it will not wipe because you need to authorize the delete for each image.…
3rdeye7
  • 536
  • 4
  • 25
1
vote
2 answers

How to save images into specific folder in iOS 9.0

Already have answers, for saving images into specific folder by using ALAssetsLibrary. But it is deprecated in iOS 9.0 and giving warning "Use PHPhotoLibrary from the Photos framework instead". When i change ALAssetsLibrary into PHPhotoLibrary…
Chandan Reddy
  • 221
  • 1
  • 5
  • 19
1
vote
0 answers

how to get UIImage metadata in swift

I'm using UIImagePickerController to take photos with camera and also to get photos from SavedPhotosAlbum library. Once user takes a photo I save it in SavedPhotosAlbum and the following method is called: override func image(image: UIImage,…
1
vote
1 answer

how to save photo in album with metadat using PHPhotolibrary in iOS9?

I have write the following code to save photo in album. it's work fine in iOS8 but It doesn't work in iOS9. PHPhotoLibrary.sharedPhotoLibrary().performChanges({ let assetRequest =…
1
vote
1 answer

CFDictionary updates to PHPhotoLibrary kCGImagePropertyExifDictionary not Taking

I am trying to add/modify the image metadata when I add an image asset to an album in an iOS 8.4 Photos collection. The following code successfully adds the GPS dictionary but does not add or change the EXIF data (I have examined the image header…
1
vote
1 answer

How can I Change collectionList Title?? "Error Domain=NSCocoaErrorDomain Code=-1"

I want to change the title of Photo Album. So I tried - (IBAction)reNameTitle:(id)sender { PHAssetCollection *myCollection = [self.collectionArray objectAtIndex:[sender tag]]; PHFetchResult *results = [PHCollectionList…
GioHong
  • 51
  • 4
1
vote
0 answers

Image in Photo Library not seen in Instagram

I have an app that shares images and videos to different services. One being Instagram. Since Instagram does not support sending videos directly I researched this blog. I was able to do something similar for videos with the new Photos…
Matt Timmons
  • 11
  • 1
  • 4