exif: prevent original duplicates on edit (fix #699)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/743/head
Varun Patil 2023-06-26 14:39:25 -07:00
parent 30ba613d8d
commit 2fda196cbf
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ class Exif
{
$data['SourceFile'] = $path;
$raw = json_encode([$data], JSON_UNESCAPED_UNICODE);
$cmd = array_merge(self::getExiftool(), ['-json=-', $path]);
$cmd = array_merge(self::getExiftool(), ['-overwrite_original', '-json=-', $path]);
$proc = proc_open($cmd, [
0 => ['pipe', 'r'],
1 => ['pipe', 'w'],