-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] Saving image on android shows different DateTime then of original meta data #1246
Comments
AI Summary: The user reports that on Android, saving an image with |
Could you provide the code you are using to read the metadata? Dates in metadata and the There are a couple of improvement paths I could imagine to cover the case:
These paths require extra investigation since the ability could be platform-specific. |
Thank you for the response! Once a File is converted into Uint8List, you can read the metadata using the following code:
|
I don't know if there is an efficient way to overwrite the Exif date in the image bytes. |
Not sure if this helps, but i just found an way to write and read exif data of an image. |
Forgot to mention link here it is. |
Version
3.6.2
Platforms
Android
Device Model
All
flutter info
How to reproduce?
First of all, this is an amazing package for media management! Kudos to the contributors and maintainers!
I noticed an issue when saving images using PhotoManager.editor.saveImage() on Android. The saved image gets the current DateTime as its information. However, when I fetch the metadata of the same image later, it still contains the old DateTime.
This creates confusion because the gallery displays the image with the DateTime of when it was saved (current date and time). For example:
I save an image with DateTime metadata as 12 Jan, 2024.
After saving, the gallery shows the image with the date 16 Dec, 2024 (today).
But when I read the metadata, it still shows the old date, 12 Jan, 2024.
This behavior is inconsistent compared to iOS, where saving an image with DateTime metadata retains the original DateTime. The gallery also shows the image in the correct position based on that metadata.
Expected Result:
I want the option to save the image with its original DateTime metadata intact.
Alternatively, there could be an option to set the DateTime explicitly when saving the image.
Could you please clarify why this happens on Android or suggest a way to ensure the metadata and gallery display are consistent?
Thank you for your efforts!
Logs
No response
Example code (optional)
Contact
No response
The text was updated successfully, but these errors were encountered: