Skip to content
pubscout

native_exif

0.8.0, released 6 months ago by cloudacy.com

Read and write EXIF metadata of images using native Android and iOS functions.

WASM-ready
$ flutter pub add native_exif
Source repository

What it does

Allows Flutter developers to read, write, and manage EXIF and GPS metadata attributes of images using native iOS and Android platform capabilities. It provides methods to extract specific tags like original dates, latitudes, and longitudes, as well as update raw EXIF string values.

AI-written summary of version 0.8.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to read creation dates or location coordinates from device photos.
  • You need to inject or modify EXIF metadata attributes in images on iOS or Android.

Skip it when

  • You need to manipulate EXIF data on platforms other than iOS and Android (such as Web or Desktop).
  • You require robust handling of non-ASCII characters when writing metadata on Android.

Strengths

  • Uses native Android and iOS functions for reliable EXIF processing.
  • Supports both reading and writing of attributes and GPS coordinates.

Weaknesses

  • Only works on Android and iOS.
  • Android implementation can currently only write ASCII characters correctly.
  • Requires manual cleanup via the close method to free memory.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Requires iOS >= 13.0, Dart >= 3.11, and Flutter >= 3.41.

final exif = await Exif.fromPath(pickedFile!.path);
final originalDate = await exif.getOriginalDate();
final latLong = await exif.getLatLong();
await exif.close();

Alternatives

Packages that do the same job and could replace native_exif.

Works with

Packages commonly used together with native_exif: ones it builds on, ones built on it, and its own family.