Log in
Model

ExifReader

Magento\MediaGalleryMetadata\Model\ExifReader

What it does

This class provides a safe wrapper around PHP's exif_read_data() function for reading EXIF metadata from image files.

It validates that the exif_read_data function is available before attempting to use it, throwing a LocalizedException if the PHP extension is not enabled.

Developers use this when they need to extract metadata like camera settings, GPS coordinates, or timestamps from uploaded images in the Media Gallery.

Public Methods

  • get()