Same name and namespace in other branches
- 8.x-1.x src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::readMetadataTags() 1 comment
- 8.x-2.x src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::readMetadataTags() 1 comment
Overrides ExifInterface::readMetadataTags
File
-
./
ExifPHPExtension.php, line 287
Class
- ExifPHPExtension
- This is a helper class to handle the whole data processing of exif.
Namespace
Drupal\exifCode
public function readMetadataTags($file, $enable_sections = TRUE) {
if (!file_exists($file)) {
return array();
}
$data1 = $this->readExifTags($file, $enable_sections);
$data2 = $this->readIPTCTags($file, $enable_sections);
$data = array_merge($data1, $data2);
if (is_array($data)) {
foreach ($data as $section => $section_data) {
$section_data = $this->_reformat($section_data);
$data[$section] = $section_data;
}
}
return $data;
}