From 24d0afb3bc79e0124c391d06853e23024db10dfb Mon Sep 17 00:00:00 2001 From: Tom Gouville Date: Sun, 18 Jan 2026 23:36:36 +0100 Subject: [PATCH] keep the image original datetime in the output file --- RawRefinery/application/dng_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RawRefinery/application/dng_utils.py b/RawRefinery/application/dng_utils.py index e5b657c..4651ba6 100644 --- a/RawRefinery/application/dng_utils.py +++ b/RawRefinery/application/dng_utils.py @@ -138,6 +138,7 @@ def to_dng(uint_img, rh, filepath, ccm1, save_cfa=True, convert_to_cfa=True, use try: + t.set(Tag.DateTimeOriginal, rh.full_metadata['EXIF DateTimeOriginal'].values) t.set(Tag.Make, rh.full_metadata['Image Make'].values) t.set(Tag.Model, rh.full_metadata['Image Model'].values) t.set(Tag.Orientation, rh.full_metadata['Image Orientation'].values[0]) @@ -198,4 +199,4 @@ def convert_color_matrix(matrix): # Append the [numerator, denominator] pair to the result list converted_list.append([numerator, denominator]) - return converted_list \ No newline at end of file + return converted_list