I'm using QGIS 3.16 and I need to add some EXIF details to images, such as elevation or time. I am using the following code in Python console to add location to images, reading params from a table and it works fine:
from qgis.analysis import *
layer = iface.activeLayer()
for feature in layer.getFeatures():
fotoPath = feature["foto"]
lon = feature["longitue"]
lat = feature["latitude"]
ele = feature["elevation"]
point = QgsPointXY(float(lon), float(lat))
QgsExifTools.geoTagImage(fotoPath, point)
but I can't figure out how to add the elevation tag.
details
argument to thegeoTagImage
function.