exif: exclude binary fields

pull/221/head
Varun Patil 2022-11-16 03:24:59 -08:00
parent c75e94108c
commit cc7567aca3
1 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ class Exif
private static function getExifFromLocalPathWithStaticProc(string &$path) private static function getExifFromLocalPathWithStaticProc(string &$path)
{ {
fwrite(self::$staticPipes[0], "{$path}\n-U\n-json\n-b\n-api\nQuickTimeUTC=1\n-n\n-execute\n"); fwrite(self::$staticPipes[0], "{$path}\n-U\n-json\n--b\n-api\nQuickTimeUTC=1\n-n\n-execute\n");
fflush(self::$staticPipes[0]); fflush(self::$staticPipes[0]);
$readyToken = "\n{ready}\n"; $readyToken = "\n{ready}\n";
@ -390,7 +390,7 @@ class Exif
private static function getExifFromLocalPathWithSeparateProc(string &$path) private static function getExifFromLocalPathWithSeparateProc(string &$path)
{ {
$pipes = []; $pipes = [];
$proc = proc_open(array_merge(self::getExiftool(), ['-api', 'QuickTimeUTC=1', '-n', '-U', '-json', '-b', $path]), [ $proc = proc_open(array_merge(self::getExiftool(), ['-api', 'QuickTimeUTC=1', '-n', '-U', '-json', '--b', $path]), [
1 => ['pipe', 'w'], 1 => ['pipe', 'w'],
2 => ['pipe', 'w'], 2 => ['pipe', 'w'],
], $pipes); ], $pipes);