From 1e881fb93b3fdffdd8d4d82117944dda5dc3cbd5 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 30 Jun 2023 10:40:17 -0700 Subject: [PATCH] exif: turn on LFS (close #713) Signed-off-by: Varun Patil --- lib/Exif.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Exif.php b/lib/Exif.php index 21244a39..956f9891 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -268,7 +268,11 @@ class Exif { $data['SourceFile'] = $path; $raw = json_encode([$data], JSON_UNESCAPED_UNICODE); - $cmd = array_merge(self::getExiftool(), ['-overwrite_original', '-json=-', $path]); + $cmd = array_merge(self::getExiftool(), [ + '-overwrite_original', + '-api', 'LargeFileSupport=1', + '-json=-', $path, + ]); $proc = proc_open($cmd, [ 0 => ['pipe', 'r'], 1 => ['pipe', 'w'],