mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-02-21 12:00:40 +00:00
added runtime type to iso
This commit is contained in:
parent
831515c212
commit
34f6612af9
1 changed files with 2 additions and 2 deletions
|
@ -13,12 +13,12 @@ Future<double> evFromImage(Uint8List bytes) async {
|
|||
final iso = double.tryParse("${tags[_isoExifKey]}");
|
||||
final apertureValueRatio = (tags[_apertureExifKey]?.values as IfdRatios?)?.ratios.first;
|
||||
final speedValueRatio = (tags[_shutterSpeedExifKey]?.values as IfdRatios?)?.ratios.first;
|
||||
|
||||
|
||||
if (iso == null || apertureValueRatio == null || speedValueRatio == null) {
|
||||
throw ArgumentError(
|
||||
'Error parsing EXIF',
|
||||
[
|
||||
if (iso == null) '$_isoExifKey: "${tags[_isoExifKey]?.printable}"',
|
||||
if (iso == null) '$_isoExifKey: ${tags[_isoExifKey]?.printable} ${tags[_isoExifKey]?.printable.runtimeType}',
|
||||
if (apertureValueRatio == null) '$_apertureExifKey: $apertureValueRatio',
|
||||
if (speedValueRatio == null) '$_shutterSpeedExifKey: $speedValueRatio',
|
||||
].join(', '),
|
||||
|
|
Loading…
Reference in a new issue