bigflood / dartexif

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

Cannot read EXIF from jpeg image from phone gallery #4

Closed vijaykanta closed 5 years ago

vijaykanta commented 5 years ago

I have tried loading a gallery image and passed to the function

try {
      Map<String, IfdTag> data = await readExifFromBytes(
          await file.readAsBytes()); // no future, only assigns after getting?

      if (data == null || data.isEmpty) {
        print("No EXIF information found\n");
        return;
      }
...

The code is caught with the exception

failed to read exif data!
I/flutter ( 8948): whereType is not yet supported

Now is that my image issue or I am calling the function wrong entirely?

edwardhuerta commented 5 years ago

I might have the same issue. I am passing the bytes of an image from Android gallery and no exif data is detected.

bigflood commented 5 years ago

what version of flutter do you using?