This is an automated email from the ASF dual-hosted git repository.
GitToTheHub pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-camera.git
The following commit(s) were added to refs/heads/master by this push:
new 2470f8d feat(android): Added `originalDateTime` to exif handling
2470f8d is described below
commit 2470f8d9701ecaf666c55e044dfe6e68087c409e
Author: Marius Van Nieuwenhuyse <[email protected]>
AuthorDate: Mon Jul 27 20:37:01 2026 +0200
feat(android): Added `originalDateTime` to exif handling
---
src/android/ExifHelper.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/android/ExifHelper.java b/src/android/ExifHelper.java
index d58a416..6faf18c 100644
--- a/src/android/ExifHelper.java
+++ b/src/android/ExifHelper.java
@@ -43,6 +43,7 @@ public class ExifHelper {
private String model = null;
private String orientation = null;
private String whiteBalance = null;
+ private String dateTimeOriginal = null;
private ExifInterface inFile = null;
private ExifInterface outFile = null;
@@ -100,6 +101,7 @@ public class ExifHelper {
this.model = inFile.getAttribute(ExifInterface.TAG_MODEL);
this.orientation = inFile.getAttribute(ExifInterface.TAG_ORIENTATION);
this.whiteBalance =
inFile.getAttribute(ExifInterface.TAG_WHITE_BALANCE);
+ this.dateTimeOriginal =
inFile.getAttribute(ExifInterface.TAG_DATETIME_ORIGINAL);
}
/**
@@ -170,6 +172,9 @@ public class ExifHelper {
if (this.whiteBalance != null) {
this.outFile.setAttribute(ExifInterface.TAG_WHITE_BALANCE,
this.whiteBalance);
}
+ if (this.dateTimeOriginal != null) {
+ this.outFile.setAttribute(ExifInterface.TAG_DATETIME_ORIGINAL,
this.dateTimeOriginal);
+ }
this.outFile.saveAttributes();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]