Description:
I am currently encountering an issue where attempting to overwrite the EXIF DateTime metadata of a photo on iOS does not work. The photo still displays its original DateTime values even after using the provided APIs to update these attributes.
I have tried the following code snippets, but none of them successfully updated the DateTime metadata:
await exif.writeAttribute('DateTimeOriginal', "1970:01:01 00:00:00");
await exif.writeAttribute('DateTimeDigitized', "1970:01:01 00:00:00");
await exif.writeAttribute('DateTime', "1970:01:01 00:00:00");
await exif.writeAttribute('kCGImagePropertyExifDateTimeOriginal', "1970:01:01 00:00:00");
await exif.writeAttribute('kCGImagePropertyExifDateTimeDigitized', "1970:01:01 00:00:00");
Other EXIF attributes, such as modifying custom tags, appear to work correctly.
Expected Behavior:
The DateTime fields in the photo's EXIF metadata should update to the new value provided in the code.
Actual Behavior:
The DateTime metadata remains unchanged, displaying the original value.
Context:
The feature I am working on requires ensuring that downloaded photos/videos do not retain their original creation date. Modifying DateTime on iOS is essential for this use case.
Additional Notes:
If this behavior is expected due to platform limitations or if there is a specific workaround, I would greatly appreciate any guidance.
Description:
I am currently encountering an issue where attempting to overwrite the EXIF
DateTimemetadata of a photo on iOS does not work. The photo still displays its originalDateTimevalues even after using the provided APIs to update these attributes.I have tried the following code snippets, but none of them successfully updated the
DateTimemetadata:Other EXIF attributes, such as modifying custom tags, appear to work correctly.
Expected Behavior:
The
DateTimefields in the photo's EXIF metadata should update to the new value provided in the code.Actual Behavior:
The
DateTimemetadata remains unchanged, displaying the original value.Context:
The feature I am working on requires ensuring that downloaded photos/videos do not retain their original creation date. Modifying
DateTimeon iOS is essential for this use case.Additional Notes:
If this behavior is expected due to platform limitations or if there is a specific workaround, I would greatly appreciate any guidance.