Questions tagged [assetslibrary]

An instance of ALAssetsLibrary represents the videos and photos that are under the control of the Photos application.

The library includes those that are in the saved photos album, those coming from iTunes and those that were directly imported into the device. You use it to retrieve the list of all asset groups and to save images and videos into the Saved Photos album.

76 questions
1
vote
1 answer

writeImageToSavedPhotosAlbum leaks memory?

Been having a tough time on this one, hope someone can help! New to posting, but have found this to be my go-to site for helping me through my apps. I have an app that takes a CGImage and copies it to the Photo Library using…
timmyramen
  • 11
  • 3
1
vote
2 answers

writeImageDataToSavedPhotosAlbum Slows Dramatically After A Few Uses

I save images to the iPhone's photo album using the api "writeImageDataToSavedPhotosAlbum". However, after several uses (such as 4), it begins to take approximately twice as long each time to save. I have created a test method to reproduce it, where…
Riley Testut
  • 431
  • 1
  • 8
  • 22
1
vote
1 answer

Created Custom Audio component in Asset share commons everything is working fine except not able to get thumbnail image in audio files

I have created custom Audio Component in Asset share commons in AEM, everything is working fine except I am not able to get the thumbnail in audio file (.mp3 and. wav).I have done some R&D then I found that Audio files does not have any rendition…
1
vote
1 answer

MyImagePicker from WWDC 2010 sample code displays nothing

I compiled and ran the MyImagePicker project from the WWDC 2010 sample code on my iPhone 3Gs with iOS 4.2.1, but it just gives me a blank table. Shouldn't it be populating with data from my photo roll? Interestingly, I also get a blank table in…
Victor Van Hee
  • 9,679
  • 7
  • 33
  • 41
1
vote
1 answer

Trying to guess if a ALAssetPropertyLocation is valid

I'm using my new super powers to load an image from the AssetLibrary on iOS 4.+ and read the location the picture was taken. Unfortunately, I'm not sure the ALAssetPropertyLocation is valid, and sometimes it looks llike it is, when actually there's…
Cyril Godefroy
  • 1,400
  • 12
  • 15
1
vote
0 answers

Continuing the prev question of ASSETWriterInput for making Video from UIImages on Iphone Issues

I want a new thread because I like to post some codes , the little comment section wouldn't do it. Thanks peter Deweese previously, but I still have issues.. I have a loop, getting a screen capture 30 times. Each time I got an image I call…
lilzz
  • 5,243
  • 14
  • 59
  • 87
1
vote
1 answer

How to compile the app assets as module assets in yii2?

I'm using Yii2 basic application. I'm keeping two different asset bundles. One for module assets and another one for global themes assets. While loading the module controller, in view files I'm registering module asset bundle along with global theme…
Manikandan S
  • 902
  • 1
  • 8
  • 18
1
vote
1 answer

Send Asset Video to web service - iOS

I am trying to send video in assets library to web service with parameter video but how is it possible to do ? I got the NSURL as the following : assets-library://asset/asset.MOV?id=What-ever-0000-000&ext=MOV I am using AFNetworking to send the…
AaoIi
  • 8,288
  • 6
  • 45
  • 87
1
vote
2 answers

Using assetForURL in Swift 1.2

I'm trying to get an image which is on the photo library, and I'm using assetForURL for that purpose, but I get all the time the error "Cannot invoke 'assetForURL' with an argument list of type '(NSURL, resultBlock: (ALAsset!) -> Void, (NSError!) ->…
diegomen
  • 1,804
  • 1
  • 23
  • 37
1
vote
0 answers

How to save a list item in a SharePoint asset library using CSOM with JavaScript?

I am creating an App for SharePoint Online and I have a question: How can I insert a list item (audio file) in a SharePoint asset library using CSOM with JavaScript? is that possible? Thanks
Joan Gerard
  • 135
  • 6
  • 17
1
vote
1 answer

Facing issue while converting NSString to NSURL

I have an assets library url to a photo: "assets-library://asset/asset.JPG?id=8D4D7820-EDD6-4CA4-A44A-2ACD53A112FC&ext=JPG" I have this in a string property imgURLString. I am trying to convert this to NSURL in the following way: NSURL *imageURL =…
rkk817
  • 117
  • 1
  • 13
1
vote
1 answer

iOS : How to get image with specific size from AssetsLibrary

I am in trouble with my App and expecting your help. I want to upload photo with specific size**(1200*1800)** from library to server,and I need to get original image then compress it. UIImage *image = [UIImage imageWithCGImage:[asset…
Friday
  • 21
  • 4
1
vote
1 answer

iPhone PhotosByLocation example not working - how to fix blank screen?

I'm trying to run PhotosByLocation iOS example to familiarize myself with the assetsLibrary framework and noticed that I get a blank screen with "Albums" on top. The location services icon in the top right is showing, and I did give the app access…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
1
vote
1 answer

Failure to save image with custom Metadata

I'm trying to create a custom image gallery within my iOS app. I would like to enable the user to be able to save certain meta data with the image so that it can be pulled up in the app later with the attached information. First, when the user…
Dan F
  • 17,654
  • 5
  • 72
  • 110
0
votes
1 answer

Saved Photos album name without Location Services permission

I'd like to a get the name of the Saved Photos album programmatically. The value changes based on locale and whether or not the device has a camera (Camera Roll vs. Saved Photos), so hard-coding is not preferable. I am aware that I can use…
julianwa
  • 21
  • 3