Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bigflood/dartexif

Dart package to decode Exif data from tiff, jpeg and heic files
https://github.com/bigflood/dartexif

dart dart-library dart-package dart-port dart-web dartlang exif flutter flutter-package heic jpeg library tiff

Last synced: 25 days ago
JSON representation

Dart package to decode Exif data from tiff, jpeg and heic files

Awesome Lists containing this project

README

        

# exif

[![Pub Package](https://img.shields.io/pub/v/exif.svg)](https://pub.dev/packages/exif)
[![Dart CI](https://github.com/bigflood/dartexif/actions/workflows/dart.yml/badge.svg)](https://github.com/bigflood/dartexif/actions/workflows/dart.yml)

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

Dart port of ianaré sévi's EXIF library: .

## Usage

* Simple example:
```dart
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