Questions tagged [photokit]

PhotoKit (also known as Photos Framework) is a framework that allows you to retrieve assets for display and playback, edit their image or video content, or work with collections of assets such as albums, moments, and iCloud Shared Albums. This framework is available in iOS 8.0 and later.

PhotoKit (also known as Photos Framework) is a framework that allows you to retrieve assets for display and playback, edit their image or video content, or work with collections of assets such as user albums, smart albums and iCloud Shared Albums. This framework is available in iOS 8.0 and later.

256 questions
0
votes
1 answer

How to export Apple's new RAW photo format .dng in iOS 10?

I'm having trouble exporting Apple's new RAW photo format .dng. UIActivityViewController exports the photo as JPEG, which defeats the purpose. Any help is much appreciated.
user1752054
  • 372
  • 4
  • 17
0
votes
1 answer

How to get a video PHAsset disk file size?

I'm trying to determine the file size on disk of a PHAsset video. The following code is returning am error "The file “IMG_0188.mov” couldn’t be opened because you don’t have permission to view it." PHVideoRequestOptions *options =…
user1752054
  • 372
  • 4
  • 17
0
votes
1 answer

iOS CoreImage Instant photo effect in Android, how to make it?

I'm a newbie with Android and I would like to filter an image with Instant photo effect on Android, like the CIPhotoEffectInstant that's available for iOS:…
Frank Eno
  • 2,581
  • 2
  • 31
  • 54
0
votes
0 answers

NSData access in iOS for external accessory

I am trying to transfer the photo image data accessed from the Photos framework to my external accessory. I am able to transfer the data. However, I am not able to open the file correctly. I access the data of the image using the NSData in the…
bob
  • 33
  • 5
0
votes
1 answer

Compiler errors with Apple's PhotoKit's AVCompositionTrackSegment.h

My project started giving errors with one of the PhotoKit headers, namely AVCompositionTrackSegment.h. The error is Expected identifier or '(' and it does not point to any line in the file. This occurs when I import either the Photos or MediaPlayer…
Tapani
  • 3,191
  • 1
  • 25
  • 41
0
votes
1 answer

How to fetch camera based and media based images/videos separately to display in collection view in iOS device

I am developing a chat app. In my app when I click attachement button, two options should come. 1) images/videos captured by the device camera(not capturing image at that time. Fetch images taken by the camera that is stored in the device) 2)…
0
votes
1 answer

Move/copy PHAsset from one album to another

I want to move an asset from one album to another. But I could only find information on creating and deleting assets. The reason I want to move instead of creating a new one and deleting the old copy is, I want to preserve the bits of data like the…
Isuru
  • 30,617
  • 60
  • 187
  • 303
0
votes
1 answer

Access video using localIdentifier, swift

I want to open a video, for which I have the localIdentifier. I know I can create an AVPlayer like this, let player = AVPlayer(URL: NSURL(fileURLWithPath: path)) Is it possible to open a video by providing its localIdentifier? I am using the video…
Bharat
  • 2,139
  • 2
  • 16
  • 35
0
votes
0 answers

Why do changes made to photos within the iOS simulator not persist?

I've recently been working with Apple's Photos framework, when I noticed that any changes made to PHAssets don't actually persist - the photo library kind of "glitches out" and a blank, grey space is left in the thumbnail view within my app. Upon…
Jason
  • 635
  • 1
  • 9
  • 21
0
votes
1 answer

Exception using NSPredicate with the Photos Framework : Define -[NSFunctionExpression constantValue]!

The following code throws an NSInvalidArgumentException on the call to fetchAssetsWithOptions: PHFetchOptions *allPhotosOptions = [[PHFetchOptions alloc] init]; allPhotosOptions.sortDescriptors = @[[NSSortDescriptor…
Alan M
  • 98
  • 8
0
votes
1 answer

How to direct link to photo on iPhone device?

I'm trying to modify photo on iOS device from my app. But all methods described by Apple or somebody else get me at all nothing. For example, I try to use ImageIO and PhotosKit to work with raw image data. To write it to file, I create…
aaveNs
  • 45
  • 4
0
votes
2 answers

Showing a View Controller within a Photos Access request callback throws exception

I am using the following code to request access to the users Photo library upon startup of my app. @IBAction func requestPhotoLibraryAccess(sender: UIButton) { PHPhotoLibrary .requestAuthorization { (status) -> Void in if (status ==…
Johnathon Sullinger
  • 7,097
  • 5
  • 37
  • 102
0
votes
1 answer

Getting fixed size Image from PHCachingImageManager

I'm trying to get thumbnails from my PHCachingImageManager so that I can put them into the built-in imageView in my UITableViewCells. NSLog(@"thumbnail size: %@", NSStringFromCGSize(AssetGridThumbnailSize)); [self.imageManager …
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
0
votes
1 answer

Cannot convert UIImage to NSData when fetched with PhotoKit

My scenario is that I select one of the photos fetched from system album with PhotoKit and presented in my UICollectionView and pass the selected photo (UIImage) to my next UIView and send it to remote server in form of NSData. But when I put…
bolizhou
  • 1,208
  • 1
  • 13
  • 31
0
votes
1 answer

How do you get a pointer to a new PHCollectionList (or PHAssetCollection) after creating

I'm trying to create a Photo "folder" and return a pointer to it. Is this possible? Below is the code I have so far. Thanks. - (PHCollectionList *) CreatePhotoFolder: (NSString *) folderName { [[PHPhotoLibrary sharedPhotoLibrary] …
NoBot
  • 198
  • 1
  • 7