EXIF tag · IFD0

Compression

Compression scheme of the image data (JPEG, uncompressed, LZW…).

0x0103
Tag ID (259 decimal)
IFD0
IFD / group
int16u!:
Data type
EXIF
Table

What Compression means#

Compression scheme of the image data (JPEG, uncompressed, LZW…).

Read, write and remove it#

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

In Python with Pillow:

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

Frequently asked questions#

What is the EXIF tag ID of Compression?

0x0103 (259 decimal), in the IFD0 directory.

How do I see Compression in a photo?

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