mirror of
https://github.com/Intervention/image.git
synced 2025-08-24 14:32:52 +02:00
set exif_read_data parameters to default
This commit is contained in:
@@ -24,7 +24,7 @@ class ExifCommand extends AbstractCommand
|
|||||||
$key = $this->argument(0)->value();
|
$key = $this->argument(0)->value();
|
||||||
|
|
||||||
// try to read exif data from image file
|
// try to read exif data from image file
|
||||||
$data = @exif_read_data($image->dirname .'/'. $image->basename, 'EXIF', false);
|
$data = @exif_read_data($image->dirname .'/'. $image->basename);
|
||||||
|
|
||||||
if (! is_null($key) && is_array($data)) {
|
if (! is_null($key) && is_array($data)) {
|
||||||
$data = array_key_exists($key, $data) ? $data[$key] : false;
|
$data = array_key_exists($key, $data) ? $data[$key] : false;
|
||||||
|
Reference in New Issue
Block a user