From cc7567aca376c01305bbe0a3406b1805cec88048 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 16 Nov 2022 03:24:59 -0800 Subject: [PATCH] exif: exclude binary fields --- lib/Exif.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Exif.php b/lib/Exif.php index ab8f3a6b..ebef819b 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -368,7 +368,7 @@ class Exif 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]); $readyToken = "\n{ready}\n"; @@ -390,7 +390,7 @@ class Exif private static function getExifFromLocalPathWithSeparateProc(string &$path) { $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'], 2 => ['pipe', 'w'], ], $pipes);