Questions tagged [alasset]

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

214 questions
8
votes
1 answer

Properly crop an image obtained from the photo library

I've been working on this all day, and have looked at lots of questions here on SO and google, but so far I can't come up with anything quite right. I have taken a photo on an iPad running iOS 5.1.1 and cropped it using the Photos app. I then get a…
lnafziger
  • 25,760
  • 8
  • 60
  • 101
7
votes
3 answers

How to save ALAsset image to disk fast on iOS?

I am using ALAsset to retrieve images like that: [[asset defaultRepresentation] fullResolutionImage]] This return CGImageRef which I want to save to disk as fast as possible... Solution 1: UIImage *currentImage = [UIImage imageWithCGImage:[[asset…
Borut Tomazin
  • 8,041
  • 11
  • 78
  • 91
7
votes
1 answer

How can i avoid location service from AlassetLibrary?

Possible Duplicate: How can i avoid Location service in AlAssetLibrary? Can i retrieve files using AlAssetLibrary without using Location Service? Hi all, I am a newbie in iphone development and obj-c. i am using "ALAssetLibrary" in my…
Vipin
  • 4,718
  • 12
  • 54
  • 81
7
votes
2 answers

ios9, ALAsset.thumbnail.size is {75,75}?

In iOS 9, I selected a photo from an album. After obtaining the ALAsset, I called the "thumbnail" to get a thumbnail and display it but photos are blurred. In iOS 8, ALAsset.thumbnail size are 150 * 150, but in iOS 9 its 75 * 75 This is my…
Tyler
  • 173
  • 9
7
votes
0 answers

Strange writeVideoAtPathToSavedPhotosAlbum behaviour

We have "video-replated" app and using writeVideoAtPathToSavedPhotosAlbum:completionBlock: from ALAssetsLibrary to save videos into camera roll. Most of the time it works very well, but sometimes completionBlock:^(NSURL *assetURL, NSError *error)…
IPv6
  • 405
  • 4
  • 17
7
votes
1 answer

How to enumerate all photos on iOS 8 using ALAssetsLibrary

iOS 8 broke lots of apps by removing "Camera Roll" from the ALAssetsLibrary enumerating API. I know I can get all photos using the new Photos framework. But my app has a lot of code depending on ALAsset related classes and I need to keep iOS 7…
Haitao Li
  • 1,695
  • 16
  • 25
7
votes
1 answer

defaultRepresentation fullScreenImage on ALAsset does not return full screen image

In my application I save images to an album as assets. I want also to retrieve them and display them in full screen. I use the following code : ALAsset *lastPicture = [scrollArray objectAtIndex:iAsset]; ALAssetRepresentation *defaultRep =…
user1480179
  • 169
  • 1
  • 7
6
votes
3 answers

iphone retrieve image using URL using ALAsset

I want to know how to how to retrieve a image using URL. I am using the ALAsset. I followed the answer (the one with the tick mark) from the following link display image from URL retrieved from ALAsset in iPhone. How to retrieve the image and…
rakendu
  • 77
  • 1
  • 2
  • 8
6
votes
0 answers

xamarin iOS alasset fullresolution image with filter

I am working on a Xamarin IOS application, testing on a iPhone5 version 8.1.3, where I let the user select images with the ALAssetLibrary. These images get send to a server and get processed. There is a minimum size to these images so I need the…
StijnvanGaal
  • 441
  • 3
  • 17
6
votes
6 answers

ALAssetsLibrary delete ALAssetsGroup / ALAsset

I have created "photos album" from my App, using IOS AssetsLibrary. Reading ALAssetsLibrary,ALAssetsGroup and ALAsset documentations, i have seen methods to "addAsset","addAssetsGroupAlbumWithName". Is there a way to delete PROGRAMMATICALLY my…
user1226119
  • 324
  • 3
  • 6
5
votes
2 answers

Error trying to assigning __block ALAsset from inside assetForURL:resultBlock:

I am trying to create a method that will return me a ALAsset for a given asset url. (I need upload the asset later and want to do it outside the result block with the result.) + (ALAsset*) assetForPhoto:(Photo*)photo { ALAssetsLibrary*…
mithuntnt
  • 507
  • 1
  • 5
  • 17
5
votes
2 answers

Is ALAssetsLibrary's enumerateGroupsWithTypes:usingBlock:failureBlock: "broken" in iOS 4.3.4?

I'm developing an iOS app that is based on ALAssetsLibrary api (available since 4.0), I use it to retrieve all the images and videos saved on the device and it's been pretty simple to do that. Anyway as soon I installed iOS 4.3.4 on my iPhone 4, my…
daveoncode
  • 18,900
  • 15
  • 104
  • 159
5
votes
2 answers

ALAssetsLibrary ALAssetsLibraryAccessUserDeniedError

When you first try to access a user's ALAssetsLibrary, the OS will present them with a dialog asking for permission. If they do not allow this, a failureBlock will be called and will always be called in the future. Is there a way to force a prompt…
rickharrison
  • 4,867
  • 4
  • 35
  • 40
5
votes
3 answers

Writing metadata to ALAsset

I am developing a video app for iPhone. I am recording a video and saving it to iPhone Camera Roll using AssetsLibrary framework. The API that I have used is: - (void)writeVideoAtPathToSavedPhotosAlbum:(NSURL *)videoPathURL …
Sahana Kamath
  • 201
  • 2
  • 8
5
votes
2 answers

Error while using alassestsLibrary

Im trying to use ALAssetsLibrary to load images fromthe photo album of iphone/ipad.Im getting the following warning while doing build and archive. ld: warning: in…
humblePilgrim
  • 1,818
  • 4
  • 25
  • 47
1
2
3
14 15