GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Image Metadata like Camera App

Open manjeettbz opened this issue 14 years ago • 6 comments

I am not getting Metadata information from saved images, Apple camera app gives Exposure, ISO,Focal length type information, is it possible to get that much information using GPUImage framework?

thanks

manjeettbz avatar Aug 01 '12 18:08 manjeettbz

This doesn't directly answer your question, so there may be another way to do this; but you can assign metadata to an image explicitly. I use the NSMutableDictionary helper category found at:

https://github.com/gpambrozio/GusUtils/tree/master/GusUtils

It makes accessing and changing the metadata super-super simple.

brspurri avatar Aug 01 '12 18:08 brspurri

Yes, but how to capture that information, exposure, ISO, Focal length, etc.

manjeettbz avatar Aug 01 '12 18:08 manjeettbz

Because I can get this information from buffer(using CMCopyDictionaryOfAttachments), i need to make changes in capturePhotoAsJPEGProcessedUpToFilter framework function or introduce new function with metaData

Brad: can you please comment/advise on this?

Thanks

manjeettbz avatar Aug 01 '12 20:08 manjeettbz

You'll need to modify the GPUImageStillCamera input to enable this. The -capturePhotoAsImageProcessedUpToFilter:withCompletionHandler: and related methods are what will need to be modified to stamp that metadata on the output images.

BradLarson avatar Aug 01 '12 20:08 BradLarson

Yes i did the same in my local copy. thanks

manjeettbz avatar Aug 01 '12 21:08 manjeettbz

@manjeettbz fork and send pull request? This is something that the entire community would want

rromanchuk avatar Dec 14 '12 14:12 rromanchuk