Edit Exif data in iOS Photos Gallery / LIbrary without creating another copy

Is there a way to edit / modify the exif data of a photo file that is part of the iOS photo library / gallery on the iPhone. Whenever I try to do this, iOS tries to save it as a separate image file. However, I would like to modify the exif data without creating another copy of the photo. I used libexif as indicated in the links below, however libexif allows me to read and modify data, but I could not figure out how to store it in the same file. The gallery APIs on iOS (ALAsset, PhotoKit) do not seem to provide direct access to the main physical file. They provide only APIs with which you can access / update or paste image content. They don't seem to have apis to modify exif data. In addition, libexif seems to work along the path of raw rawename.Is there a way to get the original file name using PhotoKit or ALAsset?

Am I missing something? Any help or pointers would be greatly appreciated.

How to write or modify EXIF โ€‹โ€‹data for an existing image in the file system without loading the image?

Save original image data with modified metadata (without re-encoding) on โ€‹โ€‹iOS

+4
source share

All Articles