Search packages, repositories and app categories

Package detailsv3.3.0

exif

Decode Exif metadata from digital image files. Supported formats: TIFF, JPEG, HEIC, PNG, WebP

AndroidiOSmacOSWindowsLinux
30-day downloads
166K
Likes
130
Pub points
140

Install package

flutter pub add exif

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The exif package enables decoding of Exif metadata from digital image files in formats including TIFF, JPEG, HEIC, PNG, and WebP. It provides a straightforward API to extract embedded information such as camera model, GPS coordinates, timestamps, and exposure settings. Designed for cross-platform use, it supports Android, iOS, macOS, Windows, and Linux. The package is ideal for applications requiring detailed image provenance or geotagging capabilities. Built on Dart, it integrates seamlessly with Flutter projects.

Use cases

  • Extracting camera details from photos
  • Retrieving GPS location data from images
  • Analyzing image capture timestamps
  • Validating image metadata integrity
  • Supporting photo management apps

Key features

  • Supports multiple image formats
  • Cross-platform compatibility
  • Simple API for metadata extraction
  • Lightweight and efficient
  • Open-source with active maintenance

Suitable for

  • Flutter apps needing image metadata
  • Photo editing tools
  • Geolocation-based applications
  • Digital forensics utilities
  • Content management systems

Considerations

  • Requires image file access permissions
  • May not support all proprietary Exif tags
  • Limited to reading; does not modify metadata
  • Performance depends on file size
  • No built-in error handling for corrupted files

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

exif

Pub Package Dart CI

Dart package to decode Exif data from TIFF, JPEG, HEIC, PNG and WebP files.

Dart port of ianaré sévi's EXIF library: https://github.com/ianare/exif-py.

Usage

  • Simple example:
printExifOf(String path) async {

  final fileBytes = File(path).readAsBytesSync();
  final data = await readExifFromBytes(fileBytes);

  if (data.isEmpty) {
    print("No EXIF information found");
    return;
  }

  if (data.containsKey('JPEGThumbnail')) {
    print('File has JPEG thumbnail');
    data.remove('JPEGThumbnail');
  }
  if (data.containsKey('TIFFThumbnail')) {
    print('File has TIFF thumbnail');
    data.remove('TIFFThumbnail');
  }

  for (final entry in data.entries) {
    print("${entry.key}: ${entry.value}");
  }

}
  • example app: https://github.com/bigflood/exifviewer

Categories

Dependencies

Dependency list 5 items

Source repository

Projects using this package