readExifFromFile function
Streaming version of readExifFromBytes.
Implementation
Future<Map<String, IfdTag>> readExifFromFile(File file,
{String? stopTag,
bool details = true,
bool strict = false,
bool debug = false,
bool truncateTags = true}) async {
final randomAccessFile = file.openSync();
final fileReader = await FileReader.fromFile(randomAccessFile);
final r = readExifFromFileReader(fileReader,
stopTag: stopTag,
details: details,
strict: strict,
debug: debug,
truncateTags: truncateTags);
randomAccessFile.closeSync();
return r.tags;
}