exif 3.3.0 copy "exif: ^3.3.0" to clipboard
exif: ^3.3.0 copied to clipboard

Decode Exif metadata from digital image files. Supported formats: TIFF, JPEG, HEIC, PNG, WebP

example/example.dart

import 'dart:io';

import 'package:exif/exif.dart';

Future main(List<String> arguments) async {
  for (final filename in arguments) {
    print("read $filename ..");

    final fileBytes = File(filename).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}");
    }
  }
}
123
likes
150
pub points
98%
popularity

Publisher

unverified uploader

Decode Exif metadata from digital image files. Supported formats: TIFF, JPEG, HEIC, PNG, WebP

Repository

Documentation

API reference

License

MIT (license)

Dependencies

args, collection, convert, json_annotation, sprintf

More

Packages that depend on exif