Questions tagged [alasset]

An ALAsset object represents a photo or a video managed by the Photo application.

214 questions
5
votes
2 answers

Using ALAsset in Swift

I know that Swift and Xcode 6 are both still in beta, but I think in my case there is a structural bug that is not related to Swift or Xcode 6 in any way. If the stackoverflow community rates this as an inappropriate question, I can delete it…
Philip Müller
  • 533
  • 1
  • 8
  • 13
5
votes
1 answer

How can I get image created date time or last modified date time from iOS Photos (like camera roll)?

I am a new guy to iOS. Recently, I am developing an iOS application need to check image (in iOS Photos) created date time and modified date time to sort these images by time. I used ALAssetsLibrary to enumerate all images, i can get following…
evanchin
  • 2,028
  • 1
  • 22
  • 25
4
votes
1 answer

Order of photo albums displayed by ALAssets library

I am using the ALAssets library to build a custom image picker controller (much like in the photos app). Specifically I'm using enumerateGroupsWithTypes to populate a list of albums so I can put them in a table. I'm noticing when using this method,…
Ser Pounce
  • 14,196
  • 18
  • 84
  • 169
4
votes
2 answers

Application Would You Like to Use Your Current Location! using ALAssetsLibrary

My application only gets image and it's metadata from ios device using ALAssetsLibrary. When application starts loading images list ios warning is shown.. "Application" Would Like to Use Your Current Location. This allows access to location…
B.S.
  • 21,660
  • 14
  • 87
  • 109
4
votes
1 answer

ALAsset , send a photo to a web service including its exif data

I want to send a photo from the camera roll to a web services - including its exif data. Im using ASIFormDataRequest - so I do : ASIFormDataRequest *request = [[ASIFormDataRequest alloc]initWithURL:url]; To save memory I directly want to send the…
HeikoG
  • 1,793
  • 1
  • 20
  • 29
4
votes
1 answer

match image returned by iPhone's ALAsset with real image on computer

I want to store some data about an iOS photo and later on reference that photo when it gets synched to a computer. However I can't work out how to identify it's the same photo. ALAsset doesn't seem to give me the original filename, and the metadata…
Alex Brown
  • 41,819
  • 10
  • 94
  • 108
4
votes
1 answer

How to play multiple videos smoothly in iOS in UICollectionView?

I want to play multiple videos in infinite loop in my collection view. Each Video represent a cell. I am using ALAsset. I am playing this using AVPLayer but it's not loading and playing smoothly. Any Suggestions. - (UICollectionViewCell…
Kumar
  • 1,882
  • 2
  • 27
  • 44
4
votes
1 answer

Memory leak from ALAssetRepresentation CGImage in Swift

I am loading images from assets in my UITableView and I noticed I get a memory leak related to the CGImage I load from the defaultAssetRepresentation.fullResolutionImage.CGImage.takeunretainedValue. func collectionView(collectionView:…
joanna cheung
  • 161
  • 3
  • 9
4
votes
1 answer

how to get correct Video Orientation correctly in iOS after save to server

I tried below code to convert video from ALAsset to NSData, this NSData is submitting to the server correctly. Problem: But the problem is when I get the thumbnail from NSData in the server, the image is not oriented correctly for some videos and…
user2706827
  • 195
  • 2
  • 11
4
votes
1 answer

Get MIME type of an ALAsset

Is there a way how to get MIME type for ALAsset? There is a nice method for metadata: NSDictionary *data = [[asset defaultRepresentation] metadata]; But that doesn't contain MIME type data...
Michal
  • 15,429
  • 10
  • 73
  • 104
4
votes
1 answer

Read images from a iphone album using ALAssetsLibrary

I am trying to write a method that read assets from a album I am getting all images from all album using ALAsset, my question is how can I customize this method to read images from myAlbum /** * This method is used to get all images from myAlbum…
SRS Infosystems
  • 167
  • 2
  • 16
4
votes
1 answer

Custom Filename for ALAsset while adding to ALAssetGroup

I was able to create custom album using link So from my application when I save file(image or video) they get added to my custom folder. I also need to give functionality to display all the saved files. So I am using "enumerateAssetsUsingBlock" to…
Sagrian
  • 1,048
  • 2
  • 11
  • 29
4
votes
0 answers

Is ALAssetsLibrary thread safe (Deadlock occurs when using multiple threads)

I'm currenly working on a tiny project which amis to loading ALL gallery photos into my app to show some fancy effect. Unfortunately, these default thumbnail provided by system cannot meet my requirement. So I try to create my own thumbnails using…
xiaowl
  • 5,177
  • 3
  • 27
  • 28
4
votes
3 answers

How to copy an image file from iOS Photo Library (ALAssetsLibrary) to the local directory of an App?

I can get images from Photo Library through ALAssetsLibrary: void (^assetEnumerator)(ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop){ if([[result valueForProperty:ALAssetPropertyType]…
Xaree Lee
  • 3,188
  • 3
  • 34
  • 55
4
votes
2 answers

Importing multiple images of original resolution : low memory warning issue

I am using ChuteSDK to import multiple images from photo library something like this: -(void)doneSelected{ NSMutableArray *returnArray = [NSMutableArray array]; [self showHUD]; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH,…
Ankur Arya
  • 4,693
  • 5
  • 29
  • 50
1 2
3
14 15