How could you add image metadata geotags when saving images using .tofile method?

Background: I am using a modified version of the ISP example to save full size (16mp) raw images from the rgb sensor. I also have the precise GPS coordinates and orientation (attitude) when the image is taken (currently written to a csv file). While this is ok, it would be nicer to add the geotag to the image file. Any ways to do this?
This is useful for mapping with drone.

  • erik replied to this.

    Hello kisdia , after a bit of googling I found this, which look like it should work. Hopefully, it will help!
    Thanks, Erik