To add some new stuff to the Mos-Eisley Gallery, I decided to extract EXIF data and use the GPS part. Inspired by this article: https://exposingtheinvisible.org/resources/image-digging
So, I added the exiftool to the Ubuntu server running Confluence, and added 2 code parts to the code:
This little piece extracts EXIF to a file placed alongside the image.
I am giving the EXIF files the .exif filename extension, so they are easy to identify and delete.
This next part extracts the Lattitide and Longitude from the EXIF file, and adds the data to the "me-image" User Macro - the part that renders the image on the Confluence page
For Open Street Maps its actually not nessesary to split Lattitude and Longitude
finally, I needed to add support to the "me-image" User Macro:
Now, if the Image has GPS coordinates, a small icon will be rederen with a link to Open Street Maps: