readExifFromFile function

Future<Map<String?, IfdTag>?> readExifFromFile(
  1. dynamic file, {
  2. String? stop_tag,
  3. bool details = true,
  4. bool strict = false,
  5. bool debug = false,
  6. bool truncate_tags = true,
})

Implementation

Future<Map<String?, IfdTag>?> readExifFromFile(dynamic file,
    // ignore: non_constant_identifier_names
    {String? stop_tag,
    bool details = true,
    bool strict = false,
    bool debug = false,
    // ignore: non_constant_identifier_names
    bool truncate_tags = true}) async {
  final randomAccessFile = file.openSync();
  final fileReader = await FileReader.fromFile(randomAccessFile);
  final r = readExifFromFileReader(fileReader,
      stopTag: stop_tag,
      details: details,
      strict: strict,
      debug: debug,
      truncateTags: truncate_tags);
  randomAccessFile.closeSync();
  return r;
}