Dictionary

What Is The Preview Image Width?

Some photos and videos store a second picture for quick display. Preview Image Width tells you how wide that preview is, in pixels, not how wide the main picture is.

preview-image-width

Preview Image Width is the width, in pixels, of a preview picture that is stored inside a file. It describes the preview and not the main picture, so it is a different value from the Image Width.

A preview is a second copy of the picture that is made for quick display. Cameras use it to show photos on their screen, and image software uses it to show many files at once. The same idea is behind the thumbnail image that many photos carry.

Which files carry it

Not every file with a preview has this field. It exists only where a camera maker or a format defines a place for it. The ExifTool tag documentation lists it in these places:

  • Canon cameras: in the Canon maker notes, inside the Preview Image Info entry with tag ID 0x00b6.
  • Some newer Kodak cameras: in the SubIFD0 part of the Kodak maker notes, with tag ID 0xfa57.
  • JPEG photos from HTC, LG, and Samsung phones: in a Scalado block, the APP4 segment, with the code WDTH.
  • Some FujiFilm cameras: in FlashPix preview information. ExifTool reads FlashPix data from FPX images and from the APP2 FPXR segment of JPEG photos.
  • Kodak MP4 videos: in a part of the file called the free atom, which is normally meant for unused space.
  • MP4 videos from Flip Video cameras: in a uuid atom that holds Flip data.

Maker notes are a block of data inside the Exif section that each camera maker defines for itself. The other places in the list sit outside the Exif section, in other parts of the file.

The standard Exif thumbnail works differently. The Exif specification defines a separate directory of tags for it, called the 1st IFD.

For a JPEG thumbnail, that directory records where the thumbnail starts and how many bytes it uses, but not its width. The width is written inside the small JPEG itself. For this reason, ExifTool lists a Thumbnail Offset and a Thumbnail Length, but no Preview Image Width.

Where the value comes from

The camera or phone that makes the file writes the value when it saves the preview. The Exif specification limits the APP1 segment, which holds the Exif data and the thumbnail, to 64 kilobytes.

Some camera makers also store a second preview in a place of their own. Sony, for example, stores an HD-size preview in JPEG images from almost all of its DSLR, SLT, ILCA, NEX, and ILCE cameras.

What the value looks like

The value is a whole number of pixels across the preview. In Canon files, the Preview Image Info entry also holds these values:

  • Preview Image Height, the other side of the same preview
  • Preview Image Length, the length of the preview data
  • Preview Image Start, the position in the file where the preview data begins
  • Preview Quality, for example Normal, Fine, or Superfine

ExifTool joins the width and the height into one Preview Image Size row. Sony cameras store both numbers together in a single Preview Image Size field with tag ID 0xb02c.

Why it matters for your file

This field explains why a report can list 2 widths for one photo. The 2 numbers measure 2 different pictures, so they do not have to match.

For print size, upload limits, or image quality, use the Image Width of the main picture. The Preview Image Width only tells you how wide the quick-display copy is.

Most files do not have this field, because only a few camera makers and formats define a place for it. So a missing Preview Image Width is normal.

Take care when you edit a photo. The Exif specification warns that data a camera maker records in its own way might be changed or lost by other editing programs.