public function executeCommand($command)
{
$command = self::getBinary() . ' ' . $command;
$process = new Process($command);
$this->logger->addInfo(sprintf('Exiftool executes command %s', $process->getCommandLine()));
$process->run();
if (!$process->isSuccessful()) {
throw new RuntimeException(sprintf('Command %s failed : %s, exitcode %s', $command, $process->getErrorOutput(), $process->getExitCode()));
}
$output = $process->getOutput();
unset($process);
return $output;
}