You are here

protected function Image::getExif in Media entity image 8

Read EXIF.

Parameters

string $uri: The uri for the file that we are getting the Exif.

Return value

array|bool An associative array where the array indexes are the header names and the array values are the values associated with those headers or FALSE if the data can't be read.

1 call to Image::getExif()
Image::getExifField in src/Plugin/MediaEntity/Type/Image.php
Get exif field value.

File

src/Plugin/MediaEntity/Type/Image.php, line 247

Class

Image
Provides media type plugin for Image.

Namespace

Drupal\media_entity_image\Plugin\MediaEntity\Type

Code

protected function getExif($uri) {
  return exif_read_data($uri, 'EXIF');
}