EXIF tag · ExifIFD

ExifImageWidth

Width of the main image in pixels.

0xa002
Tag ID (40962 decimal)
ExifIFD
IFD / group
int16u:
Data type
EXIF
Table

What ExifImageWidth means#

Width of the main image in pixels.

Read, write and remove it#

# read
exiftool -ExifImageWidth photo.jpg
# write
exiftool -ExifImageWidth="…" photo.jpg
# remove
exiftool -ExifImageWidth= photo.jpg
# all files in a folder, as CSV
exiftool -csv -ExifImageWidth -r ./photos > exif-image-width.csv

In Python with Pillow:

from PIL import Image
exif = Image.open("photo.jpg").getexif()
value = exif.get_ifd(0x8769).get(0xa002)  # ExifImageWidth
print(value)

Frequently asked questions#

What is the EXIF tag ID of ExifImageWidth?

0xa002 (40962 decimal), in the ExifIFD directory.

How do I see ExifImageWidth in a photo?

Run exiftool -ExifImageWidth 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