ciimage
Interpret XMP-Metadata in ALAssetRepresentation
ALAssetRepresentation* representation = [[self assetAtIndex:index] defaultRepresentation]; // Create a buffer to hold the data for the asset’s image uint8_t *buffer = (Byte*)malloc(representation.size); // Copy the data from the asset into the buffer NSUInteger length = [representation getBytes:buffer fromOffset: 0.0 length:representation.size error:nil]; if (length==0) return nil; // Convert the buffer into a NSData object, and free … Read more