[Bug] Getting libjpeg error when trying to scan images taken from camera
Hello, thanks for working on this plugin. I have been using this plugin to scan images from path but I'm receiving this error when trying to scan images taken through the camera,
D/skia ( 6159): libjpeg error 116 <Corrupt JPEG data: 18 extraneous bytes before marker 0xdb> from output_message W/System ( 6159): A resource failed to call close. I/flutter ( 6159): TypedDataView(cid: 142) E/flutter ( 6159): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: Null check operator used on a null value E/flutter ( 6159): #0 _HomeBodyState.build.
To recreate the issue you can download the original image file from here and try scanning using the scanImagePath method.
I also noticed that image scanning works fine if I optimize the image using an online optimizing tool like jpeg-optimizer.
Thank you.