Add GPS Location EXIF Metadata To JPEGs In Delphi XE5 Firemonkey On Android And IOS

Delphi XE5 Firemonkey EXIF Image DataIf you’re not using the built in CameraUI functionality on the Android and IOS devices you probably are not getting any EXIF metadata attached to your images on mobile devices. Luckily, an existing Delphi EXIF library was recently updated to add support for Delphi XE5 Firemonkey on Android and IOS. I’m not 100% sure on the IOS support because only an Android example was provided. In any event the CCR EXIF library will allow you to add GPS location data to the EXIF metadata of your JPEG images when you save them in Delphi XE5 Firemonkey. One caveat is that the CCR EXIF library requires the System.ByteStrings unit which you read about here. Chris Rolliston is the creator of the CCR EXIF library and he has a blog post about it here. He has has a sample app using the library up on Google Play. Here is some sample code from the project for setting the GPS location data:

Check out and download the free CCR EXIF library plus examples.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Use AnsiString And UTF8String In Delphi XE5 Firemonkey On Android And IOS

Embarcadero disabled access to byte stings in Delphi XE5 Firemonkey and if you're a long time Delphi developer you may...