Closed CYBERDEVILZ closed 9 months ago
Hi,
I performed a similar test (PNG image, android emulator (API 33), same order of instructions) but could not reproduce the described behavior.
I would recommend to check if it's actually the same image. Some image modifications, like resizing, could cause cleared EXIF data. Did you try to reproduce this issue with the example app?
Aaaah my bad! I was saving the image twice, one was original and the other was with modified exif. Thanks, works like charm!
Hi there, I want to add a custom EXIF data to image selected from gallery. This is the code I have written that sets the "UserComment" attribute to "logoboa".
When I print using exif.getAttributes(), i find that the attribute has been set as seen below:
{UserComment: logoboa, ImageWidth: 0, ImageLength: 0, Orientation: 0}
Now when i load the image later, i see that the changes are not being made:
The data printed does not contain "UserComment" attribute as seen below:
{ImageWidth: 0, ImageLength: 0, Orientation: 0}
Device being used is an Android Emulator. What am I doing wrong here?