I'm building a camera effects app and would like to be able to add geo tagging to the screenshots that I capture.
I'm grabbing camera images from an AVCaptureSession frame buffer and am displaying them to the user after some processing. The end result is a PNG screenshot. How can I take a CLLocation
object and add it to a PNG image?
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection
{
//how to add geotagging to this method?
[self performImageCaptureFrom:sampleBuffer];
}
Thank you!