Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cause RangeError for some images #7

Closed
ttlg opened this issue Jan 18, 2019 · 2 comments
Closed

Cause RangeError for some images #7

ttlg opened this issue Jan 18, 2019 · 2 comments

Comments

@ttlg
Copy link

ttlg commented Jan 18, 2019

Hi, Thank you for making the package.
I noticed that readExifFromBytes causes RangeError for some images.
I am not sure which image cause that. But the image which caused the error was the image cropped by the smart phone application.

E/flutter (23641): [ERROR:flutter/shell/common/shell.cc(184)] Dart Error: Unhandled exception:
E/flutter (23641): RangeError (start): Invalid value: Only valid value is 0: 8
E/flutter (23641): #0 RangeError.checkValidRange (dart:core/errors.dart:327:7)
E/flutter (23641): #1 List.sublist (dart:core/runtime/libgrowable_array.dart:81:22)
E/flutter (23641): #2 make_string_uc (package:exif/src/util.dart:31:13)
E/flutter (23641): #3 ExifHeader.dump_ifd (package:exif/src/exifheader.dart:350:35)
E/flutter (23641): #4 readExifFromFileReader (package:exif/src/read_exif.dart:241:9)
E/flutter (23641): #5 readExifFromBytes (package:exif/src/read_exif.dart:22:17)

@bigflood
Copy link
Owner

It will be helpful if you give me that image.

@ttlg
Copy link
Author

ttlg commented Jan 19, 2019

I uploaded the image on AmazonPhotos. You can download it from the link:
https://www.amazon.co.jp/photos/share/q55y33KD43fDZTAXHmutArVO1BV6A9NSQw8CqrcCVvd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants