diff --git a/src/Intervention/Image/Imagick/Commands/ExifCommand.php b/src/Intervention/Image/Imagick/Commands/ExifCommand.php index 3d54fedc..924522ca 100644 --- a/src/Intervention/Image/Imagick/Commands/ExifCommand.php +++ b/src/Intervention/Image/Imagick/Commands/ExifCommand.php @@ -53,7 +53,7 @@ class ExifCommand extends BaseCommand continue; } - $exif[substr($key, 6)] = $value; + $exif[substr($key, 5)] = $value; } $this->setOutput($exif); diff --git a/tests/ExifCommandTest.php b/tests/ExifCommandTest.php index 074ed664..7e7cd31d 100644 --- a/tests/ExifCommandTest.php +++ b/tests/ExifCommandTest.php @@ -67,6 +67,7 @@ class ExifCommandTest extends PHPUnit_Framework_TestCase $this->assertTrue($result); $this->assertTrue($command->hasOutput()); $this->assertInternalType('array', $command->getOutput()); + $this->assertEquals('Oliver Vogel', $command->getOutput()['Artist']); } public function testImagickFetchDefined()