What Is Image Metadata and How Is It Used?
What Is Image Metadata and How Is It Used?
Definition
Image metadata includes details relevant to the image itself and to its
production. Some metadata is generated automatically by the system
capturing or creating the image. Additional metadata can be added
manually and edited through dedicated software or general image
editing software, such as GIMP or Adobe Photoshop. Metadata can
also be added directly on some digital cameras.
Figure 1. Photo open in Affinity Photo program with a panel on the right showing some of the image
metadata
Metadata is usually added to an image file directly, along with the bits
that define the image itself. With an application such as Hex Fiend, you
can pick out pieces of the metadata text from the binary data. Figure 2
shows the binary data for the sunset.jpg file. The screenshot starts at
the beginning of the file, where the EXIF data has been added. The four
bytes that represent the term EXIF are highlighted in the screenshot,
along with the matching text.
:
Figure 2. Binary data for the sunset.jpg file (the same image opened in Affinity Photo in the previous image)
Image metadata can also be stored in a file separate from the main
image file. This type of file is often called a sidecar file and must
accompany the image file to ensure that the metadata is available to
the image when needed. Sidecar files commonly use XMP to format the
metadata. Figure 3 shows part of the contents of an XMP file that was
generated for the sunset.jpg image. Notice how the data is presented
in an XML-based format.
:
Figure 3. Image metadata can be stored in a file called a sidecar file separate from the main image file. This
shows part of the contents of an XMP file generated for the sunset.jpg image.