-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Hello, I'm having a problem where the image exif attributes only change in android emulator, but when I'm trying in a real smartphone (S20fe) the exif does not change or update.
Heres the code part:
final exif = await Exif.fromPath(imagefile);
debugPrint('Image file has been loaded');
final attributes = await exif.getAttributes();
await exif.writeAttribute('DateTimeOriginal', videoDate!);
if(location!=null) {
await exif.writeAttributes({
'GPSLatitude': lat,
'GPSLatitudeRef': latRef,
'GPSLongitude': lon,
'GPSLongitudeRef': lonRef,
});
}
debugPrint('Date time altered to:');
debugPrint(videoDate.toString());
debugPrint('Location altered to:');
debugPrint('$lat$latRef $lon$lonRef');
final result = await exif.writeAttributes(attributes!);
await exif.close();
debugPrint('Image attributes has been set');