here the complete code in theme.php for reading the EXIF data:
// read exif data
if ($CONFIG['read_exif_data']) {
$path_to_pic = $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];
$path_to_orig_pic = $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CONFIG['orig_pfx'] . $CURRENT_PIC_DATA['filename'];
$metadata_path = file_exists($path_to_orig_pic) ? $path_to_orig_pic : $path_to_pic;
$exif = exif_parse_file($metadata_path, $CURRENT_PIC_DATA['pid']);
if (is_array($exif)) {
array_walk($exif, 'sanitize_data');
}
print_r($exif);
$exif_bracket_array = array('Focal length', 'FNumber', 'Exposure Time', 'Model',);
$exif_string = '';
foreach ($exif_bracket_array as $key) {
$exif_string .= $exif[$key] . ', ';
}
$exif_string = rtrim($exif_string);
$exif_string = rtrim($exif_string, ',');
//print_r($exif_string);
if ($exif_string != '' && $exif[$lang_picinfo['Model']] !='') {
// EXIF String on Image page
$exif_string = $exif[$lang_picinfo['Model']] .' - '. $exif['LensInfo']. ' ('. $exif[$lang_picinfo['ExposureProgram']] .', ' . $exif[$lang_picinfo['FocalLength']] . ', ' . $exif[$lang_picinfo['FNumber']] . ', ' . $exif[$lang_picinfo['ExposureTime']] . ', ISO '. $exif[$lang_picinfo['ISOSpeedRatings']] .', '. $exif[$lang_picinfo['Flash']] .')';
}
else $exif_string = ' not indicated';
//print_r($exif_string); //Test output string
}
the print_r returns the following array:
Array ( [Colour Space] => sRGB [DateTime Original] => 2015:01:02 20:13:59 [Exposure Program] => Manual [Exposure Time] => 1/800 sec [FNumber] => f/2.8 [Flash] => No Flash [Focal length] => 135 mm [ISO] => 6400 [Make] => Canon [Metering Mode] => Pattern [Model] => Canon EOS 7D )
so the LensInfo is not included.