Importing altitude (depth) data into pictures

Started by paneves, October 04, 2016, 05:46:38 AM

Previous topic - Next topic

paneves

Hi all:

I have several underwater pictures takan during my dives. With my logbook software I can relate each picture with the depth on which it was taken (comparing the timestamp of each picture with the dive profile). My diving log software allows me to export a *csv file containing the name of each picture and it's depth ( in meters, format: xx.xm e.g 16.6m). I'd like to use exiftool to read this info from the *csv file and write it to the corresponding image metadata.
I'm not sure which exif tags would be appropriate, maybe Exif.GPSInfo.GPSAltitudeRef and Exif.GPSInfo.GPSAltitude. Am I right? What would be the easiest approach?

Thanks in advance.

All the best:

Pedro Neves

Phil Harvey

Hi Pedro,

Exif 2.31 to the rescue!  The new EXIF standard added a WaterDepth tag that you can use if you want.  ExifTool 10.28 and later support writing this tag, but it may be a while before other software recognizes this.  So if you want to use this with other software, maybe your GPSAltitude is a good compromise.

See FAQ 26 for help importing from CSV.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Alan Clifford

I thought about using the altitude tags but what if you are diving in a lake at 1000 metres up and 30 metres underwater?

I created my own xmp tag to record depth in my photos, UWDepth, but I suppose I'll start using the new exif tag.