Skip to content

Exif atributes only change in android emulator. #11

Description

@Hash1mot0

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');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions