Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bigflood/dartexif
- Owner: bigflood
- License: mit
- Created: 2016-12-15T11:47:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-05T14:14:36.000Z (about 1 year ago)
- Last Synced: 2024-10-01T16:40:02.335Z (about 1 month ago)
- Topics: dart, dart-library, dart-package, dart-port, dart-web, dartlang, exif, flutter, flutter-package, heic, jpeg, library, tiff
- Language: Dart
- Homepage: https://pub.dev/packages/exif
- Size: 2.94 MB
- Stars: 30
- Watchers: 5
- Forks: 30
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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