Questions tagged [photolibrary]

176 questions
1
vote
2 answers

How to save and retrieve photos in photo album with their names

I have the following doubts: Can we save a photo(image) to photo album with a "specific name" or can we access the name of the photo after saving it? Can we access a photo with its name from the photo album? Please help. Thanks in advance.
Satya
  • 3,320
  • 1
  • 20
  • 19
1
vote
1 answer

SwiftUI Application crashes even though I added NSCameraUsageDescription in info.plist

I’m using Xcode 11.3.1 (11C504) and iOS 13 I am using camera to upload photos on my app, app crashes with following very known message: This app has crashed because it attempted to access privacy-sensitive data without a usage description. The…
Ravindra_Bhati
  • 1,071
  • 13
  • 28
1
vote
2 answers

uiimagepickercontroller video duration - photo library

Am developing a app which will upload video to the server which is picked form local iphone photo library. here i want to restrict the user not to upload more than 3min of video..Question is how to get the duration of the video which is picked from…
nik
  • 2,289
  • 6
  • 37
  • 60
1
vote
1 answer

Swift: PhotoLibrary delete assets and get progress

I need to show progress of deleting photos and videos from photo library. In case of few photos - deletion can take few seconds but in case of 1000 photos - it will take few minutes. So, i need to show a progress somehow. How can I do that? My code …
Haloo
  • 57
  • 5
1
vote
2 answers

Swift: get assets from Photo Library with excluding subtypes

I want to get list of assets from Photo Library but exclude subtypes or assets from smartfolders such as smartAlbumBursts, smartAlbumLivePhotos, smartAlbumScreenshots my code is let options = PHFetchOptions() options.sortDescriptors = […
Haloo
  • 57
  • 5
1
vote
1 answer

I can't set image from photo library to imageView, and got error Error Domain=PlugInKit Code=13 “query cancelled”

I'm developing an ios app using swift4. When clicking profile image view, to set profile image on imageview, I have tap gesture call function. The below is my code. I implemented picker delegate using extension following swift guide. Seeing several…
Kazaka Nelson
  • 158
  • 3
  • 14
1
vote
0 answers

Why load Video extention (.3gp) freeze from photoLibrary swift 4

I am trying to select video from PhotoLibrary with extension (.3gp) when I choosing one video.3gp to make app freeze. how to allowed or block that extension files?. I tried so hard but still doesn't work, in debug area and code no error. Update: I…
Jeri P.M
  • 399
  • 5
  • 15
1
vote
0 answers

Circular crop for photos from photo library when using UIImagePickerController

I am trying to change the square crop tool to circular one for the images selected from Photo Library in Swift 4. I tried many old codes available in here with no luck. Can somebody please help me. There are mainly 2 issues in this code. It…
defiant
  • 3,161
  • 11
  • 41
  • 65
1
vote
0 answers

Ionic Cordova PhotoGallery SaveImage can't get permission

I'm building an app with ionic & cordova and I have to display some images and let the user decide which to download to its device. The code I use to save the image is the following: this.pl.requestAuthorization().then(()=>{ …
1
vote
2 answers

How get image filename from PHAsset of library in swift3

I'm using QBImagePicker. I tried to get image file name, but it's very difficult. What can I do for that? I don't know it. func qb_imagePickerController(_ imagePickerController: QBImagePickerController!, didFinishPickingAssets assets: [Any]!) { …
김현정
  • 11
  • 5
1
vote
0 answers

Query Cancelled Error when trying to use photo from camera roll in app in IOS 11 / Swift 4.0 -

I have used a variety of solutions offered in other posts including permission settings in infoplist. I'd love any advice anyone could lend. Additionally, I've tried a variety of photo picker functions and have coded a variety of functions that try…
1
vote
1 answer

How to retrieve photo library path?

I am using photos saved in photo library in my application. how can I retrieve path of photos saved in photo library? I had converted that UIImage into NSData and saved that data in application's sandbox(in one file).Using sqlite , I have created a…
user572555
  • 51
  • 1
  • 2
  • 5
1
vote
0 answers

Ionic 2 Camera does not display Photo Library option

In Ionic 2 I have to use separate actions for Camera and Photo Library. Is there a way when I open Camera, I can go to Photos from inside like I can do in other apps like Whatsapp.
Tapas Mukherjee
  • 2,088
  • 1
  • 27
  • 66
1
vote
1 answer

iOS 10.3 WKWebView crash when accessing Photo Library

On iOS 10.3 simulator when I try to upload an image from the Photo Library through WKWebView my app crashes with error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Source type must be…
nickgzzjr
  • 409
  • 6
  • 9
1
vote
0 answers

Memory leaks when using UIImagePickerController in camera mode

This is a simple single view, single ViewController test app. This app has one button in the ViewController. Accessing the PhotoLibrary does not show any leaks, but the camera shows some leaks when presented and more when dismissed. Here is code:…