exif_reader 4.0.0 copy "exif_reader: ^4.0.0" to clipboard
exif_reader: ^4.0.0 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 exif =
        await readExifFromSource(await FileRASource.load(File(filename)));

    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
0
points
642
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.

Homepage

License

unknown (license)

Dependencies

brotli, collection, iso_base_media, js_interop_utils, random_access_source, sprintf, web

More

Packages that depend on exif_reader