bigflood / dartexif

Dart package to decode Exif data from tiff, jpeg and heic files
https://pub.dev/packages/exif
MIT License
31 stars 30 forks source link

Not all tags is fetching from exif #5

Closed fyn-dev closed 5 years ago

fyn-dev commented 5 years ago

exif version 1.0 Have a look this image If you use tool like http://exif.regex.info/exif.cgi you can see data like camera, location and son on.

But when I try to use exactly the same image with this library it shows only:

Image Orientation (Short): Horizontal (normal) Image ExifOffset (Long): 38 ColorSpace (Short): sRGB ExifImageWidth (Long): 640 ExifImageLength (Long): 480

Where is the rest tags? Why it doesn't parse properly all tags?

the code I use:

file.then((fileData) async {
              Map<String, IfdTag> data  = await readExifFromBytes(fileData);
              if (data == null || data.isEmpty) {
                debugPrint("No EXIF information found\n");
              return;
              }

              for (String key in data.keys) {
                debugPrint("$key (${data[key].tagType}): ${data[key]}");
              }
            });

PS. Sorry after more test I figure out that issue with image picker library and iOS. On Android everything works fine