{
// Request the full stream of meta data in JSON format.
// -j option outputs in JSON, -n = prevent screen formatting
- $command = '-j -n ' . $image;
+ // -x DataDump prevents the binary DataDump field from some cameras from
+ // being included. It messes up the JSON decoding, and it's not used
+ // anywhere anyway.
+ $command = '-j -n -x MakerNotes:DataDump ' . $image;
$results = json_decode($this->_execute($command));
if (is_array($results)) {
$results = array_pop($results);
}
-
// Return as an array since that's what all the other Exif classes do...
if ($results instanceof stdClass) {
return $this->_processData((array)$results);