EXIF tag · IFD0

DepthUnits

The DepthUnits tag stored in the IFD0 directory.

0xc7ec
Tag ID (51180 decimal)
IFD0
IFD / group
int16u!
Data type
EXIF
Table

What DepthUnits means#

The DepthUnits tag stored in the IFD0 directory.

Defined values#

ValueMeaning
0Unknown
1Meters

Read, write and remove it#

# read
exiftool -DepthUnits photo.jpg
# write
exiftool -DepthUnits="…" photo.jpg
# remove
exiftool -DepthUnits= photo.jpg
# all files in a folder, as CSV
exiftool -csv -DepthUnits -r ./photos > depth-units.csv

In Python with Pillow:

from PIL import Image
exif = Image.open("photo.jpg").getexif()
value = exif.get(0xc7ec)  # DepthUnits
print(value)

Frequently asked questions#

What is the EXIF tag ID of DepthUnits?

0xc7ec (51180 decimal), in the IFD0 directory.

How do I see DepthUnits in a photo?

Run exiftool -DepthUnits photo.jpg, or open the file's info panel in Lightroom, Photoshop, Windows (Properties → Details) or macOS Preview (Tools → Show Inspector).

Last updated October 03, 2026 · How we calculate · Sources