exif: turn on LFS (close #713)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/743/head
Varun Patil 2023-06-30 10:40:17 -07:00
parent 3c52125c0f
commit 1e881fb93b
1 changed files with 5 additions and 1 deletions

View File

@ -268,7 +268,11 @@ class Exif
{ {
$data['SourceFile'] = $path; $data['SourceFile'] = $path;
$raw = json_encode([$data], JSON_UNESCAPED_UNICODE); $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, [ $proc = proc_open($cmd, [
0 => ['pipe', 'r'], 0 => ['pipe', 'r'],
1 => ['pipe', 'w'], 1 => ['pipe', 'w'],