Questions tagged [alasset]

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

214 questions
4
votes
1 answer

UIImage from GRKPhoto using ALAsset

I'm using grabKit in order to allow users to import their Instagram, Facebook and local pictures to my app. The problem comes when the photo is local. In this case, I use a method that works when the user selects the photo. The standard code I…
IOS_DEV
  • 949
  • 3
  • 12
  • 33
4
votes
1 answer

How to update exif of ALAsset without changing the image?

I use setImageData:metadata:completionBlock: of ALAsset to update the exif(metadata) of an asset. I just want to update the metadata, but this method require an imageData as the first parameter. I use the code below to generate imageData, but it…
nickcheng
  • 516
  • 4
  • 22
4
votes
1 answer

How to get a correctly rotated UIImage from an ALAssetRepresentation?

I’m trying to get a correctly rotated UIImage from an ALAssetRepresentation using the fullScreenImage method. I have several testing photos shot in various device orientations; the photos show up correctly in the Photos app. The documentation for…
zoul
  • 102,279
  • 44
  • 260
  • 354
4
votes
1 answer

ALAsset Unique identifier

I want to duplicate an image from the Photo Library but I want to check in the future if I already have imported this image. Immagine this scenario. I have a photo in my Photo Library. I import it in my app by making a copy of it. I remove this…
Leonardo Amigoni
  • 2,237
  • 5
  • 25
  • 35
3
votes
1 answer

Problems Determining Correct Orientation Using ALAssetOrientation and UIImageOrientation

I'm having problems orienting images properly on the iPhone. I'm accessing the images using the AssetLibrary classes. All, I want to do is properly orient the images for display, unfortunately for some images that are taken in portrait mode, they…
3
votes
0 answers

Uploading ALAsset to Dropbox

I'm using the Dropbox API for the iPhone to upload a photo from the camera roll to a Dropbox account. However, to accomplish this I seem to have to save the full resolution image of the ALAsset to a file and then upload that file to Dropbox. I'm…
Brian Fritz
  • 103
  • 1
  • 5
3
votes
1 answer

Set Maximum Size for CGImageRef from ALAssetRepresentation

I am currently using the following code to get an UIImage from an ALAsset in an iOS app. ALAssetRepresentation *rep = [self.asset defaultRepresentation]; CGImageRef ref = [rep fullResolutionImage]; ALAssetOrientation orientation = [[self.asset…
0x90
  • 6,079
  • 2
  • 36
  • 55
3
votes
2 answers

ALAssetsLibrary ALAssetsLibraryDataUnavailableError

I'm trying to make sure to cover all my bases with regard to ALAssetsLibrary failing for whatever reason. In looking through the possible errors that could occur when calling: - (void)enumerateGroupsWithTypes:usingBlock:failureBlock; i noticed that…
Sahil
  • 1,268
  • 12
  • 19
3
votes
1 answer

ALAsset URLs have changed from iOS 4.3 to 5.0?

I've got an app where I'm taking pictures and storing them to the camera roll. I save the resultant ALAsset's URL so I can reload those specific images again later. This seemed to be working fine until I upgraded to iOS 5.0. Now, when I try to load…
jamesinkster
  • 55
  • 1
  • 5
3
votes
2 answers

incompatible block pointer types initializing 'void(^)(struct ALAssetsGroup *, BOOL *)'with an expression of type

I saw several people on SO have been using this code successfully. But I got the incompatible block pointer error: Incompatible block pointer types initializing void(^)(struct ALAssetsGroup *, BOOL *) with an expression of type void(^)(ALAsset…
user523234
  • 14,323
  • 10
  • 62
  • 102
3
votes
1 answer

AVAsset has no tracks or duration when created from an ALAsset URL

I'm pulling all of the video assets from ALAssetsLibrary (Basically everything that's being recorded from the native camera app). I am then running an enumeration on each video asset that does this to each video: // The end of the enumeration is…
Ethan
  • 5,660
  • 9
  • 44
  • 51
3
votes
3 answers

ALAsset timestamp returns wrong date

I am trying to get the timestamp of images, I can get the correct latitude and longitude values, but the timestamp always returns the current time, not the EXIF time of the image. ALAssetsLibraryAssetForURLResultBlock resultsBlock = ^(ALAsset…
RexMac66
  • 111
  • 1
  • 9
3
votes
2 answers

CGImage orientation issues when retrieved from ALAssset

I am just starting to learn iPhone app development. I am trying to retrieve photos from my photo album using ALAsset class and upload the photos to my server. However, the photos that were taken in the Portrait mode are rotated 90 degrees to the…
Balaji Krishnan
  • 101
  • 3
  • 5
3
votes
2 answers

Can I change the Core Location alert message when accessing ALAssets?

I am using the ALAssets framework to access the Photo Library. The first time it's accessed, it asks the User if the app can use their Current Location, and I understand that is necessary and why. However, in Core Location Manager, there is a…
Caroline
  • 4,875
  • 2
  • 31
  • 47
3
votes
2 answers

How can i avoid Location service in AlAssetLibrary? Can i retrieve files using AlAssetLibrary without using Location Service?

i created a application to get images from iPhone photo Folder using ALAssetLibrary. Can i retrieve files using AlAssetLibrary without using Location Service? How can i avoid Location service in AlAssetLibrary?
Vipin
  • 4,718
  • 12
  • 54
  • 81