exif
3.3.0, released 3 years ago by an unverified publisher
Decode EXIF metadata from TIFF, JPEG, HEIC, PNG and WebP files in Dart.
What it does
The package reads binary image data and extracts EXIF tags into a map. It supports multiple image formats and works on all major platforms. It provides helper functions to read from bytes or files.
AI-written summary of version 3.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to read camera or image metadata in a pure‑Dart app
- You want a lightweight, platform‑agnostic solution without native plugins
Skip it when
- You need full image manipulation (resize, crop, etc.)
- You require real‑time streaming of EXIF data
Strengths
- Supports many image formats including WebP and HEIC
- Pure Dart, works on mobile, desktop and web
- No native code or permissions required
Weaknesses
- Only extracts metadata, no image processing features
- API is relatively low‑level, manual map handling
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 5
final bytes = File('photo.jpg').readAsBytesSync();
final exif = await readExifFromBytes(bytes);
exif.forEach((k,v)=>print('$k: $v'));Alternatives
Packages that do the same job and could replace exif.
Works with
Packages commonly used together with exif: ones it builds on, ones built on it, and its own family.
- json_annotationexif depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- argsexif depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- convertexif depends on itEncoders and decoders for converting between different data representations.
- sprintfexif depends on itDart implementation of C-style sprintf formatting
- flutter_avifBuilt on exifA flutter plugin to view and encode avif images using libavif.
- flutter_image_filtersBuilt on exifApply OpenGL fragment shader filters to images with preview widgets.