exif_reader 4.0.2 copy "exif_reader: ^4.0.2" to clipboard
exif_reader: ^4.0.2 copied to clipboard

Decode EXIF data from image files (improved fork of https://github.com/bigflood/dartexif). Supports VM, JavaScript and Web Assembly.

example/example.dart

// ignore_for_file: avoid_print

import 'dart:io';

import 'package:exif_reader/src/read_exif.dart';
import 'package:random_access_source/random_access_source.dart';

Future<void> main(List<String> arguments) async {
  for (final filename in arguments) {
    print('Reading $filename ..');

    final src = await FileRASource.loadFile(File(filename));
    final exif = await readExifFromSource(src);
    await src.close();

    if (exif.warnings.isNotEmpty) {
      print('Warnings:');
      for (final warning in exif.warnings) {
        print('  $warning');
      }
    }

    if (exif.tags.isEmpty) {
      print('No EXIF information found');
      return;
    }

    for (final entry in exif.tags.entries) {
      print('${entry.key}: ${entry.value}');
    }
  }
}
9
likes
160
points
761
downloads

Publisher

verified publishermgenware.com

Weekly Downloads

Decode EXIF data from image files (improved fork of https://github.com/bigflood/dartexif). Supports VM, JavaScript and Web Assembly.

Repository
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

brotli, collection, iso_base_media, random_access_source, sprintf, web

More

Packages that depend on exif_reader