public async Task <IEnumerable <Tag> > GetTagsAsync(string srcPath) { VerifySourceFile(srcPath); var reader = new ExifReader(_opts); var parser = new ExifParser(); var exifJson = await reader.ReadExifAsync(srcPath).ConfigureAwait(false); return(parser.ParseTags(exifJson)); }
public async Task <IEnumerable <Tag> > GetTagsAsync(Stream stream) { if (stream == null) { throw new ArgumentNullException(nameof(stream)); } var reader = new ExifReader(_opts); var parser = new ExifParser(); var exifJson = await reader.ReadExifAsync(stream).ConfigureAwait(false); return(parser.ParseTags(exifJson)); }