Remove exiftool gitmodule dependency

This commit is contained in:
Romain Neutron
2012-05-04 01:26:21 +02:00
parent 7fb78bf281
commit fcd3e42737
11 changed files with 33 additions and 28 deletions

View File

@@ -735,12 +735,23 @@ class system_file extends \SplFileInfo
$registry = registry::get_instance();
if (in_array($system, array('DARWIN', 'LINUX'))) {
$cmd = $registry->get('GV_exiftool') . ' -m -overwrite_original -XMP-exif:ImageUniqueID=\'' . $this->uuid . '\' -IPTC:UniqueDocumentID=\'' . $this->uuid . '\' ' . escapeshellarg($this->getPathname()) . '';
} else { // WINDOWS
$cmd = __DIR__ . '/../../../vendor/phpexiftool/exiftool/exiftool'
. ' -m -overwrite_original '
. ' -XMP-exif:ImageUniqueID=\'' . $this->uuid . '\''
. ' -IPTC:UniqueDocumentID=\'' . $this->uuid . '\''
. ' ' . escapeshellarg($this->getPathname());
} else {
if (chdir($registry->get('GV_RootPath') . 'tmp/')) {
$cmd = 'start /B /LOW ' . $registry->get('GV_exiftool') . ' -m -overwrite_original -XMP-exif:ImageUniqueID=\'' . $this->uuid . '\' -IPTC:UniqueDocumentID=\'' . $this->uuid . '\' ' . escapeshellarg($this->getPathname()) . '';
$cmd = 'start /B /LOW ' . __DIR__ . '/../../../vendor/phpexiftool/exiftool/exiftool.exe'
. ' -m -overwrite_original'
. ' -XMP-exif:ImageUniqueID=\'' . $this->uuid . '\''
. ' -IPTC:UniqueDocumentID=\'' . $this->uuid . '\''
. ' ' . escapeshellarg($this->getPathname());
}
}
if ($cmd) {
$s = @shell_exec($cmd);
}