-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Range Error inside decoded image #607
Comments
Flutter doctor [✓] Flutter (Channel stable, 3.13.4, on macOS 14.0 23A344 darwin-x64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] VS Code (version 1.85.1) [✓] Connected device (4 available) [✓] Network resources • No issues found! |
Sorry, there isn't nearly enough info here for me to diagnose the issue. If you have something I can reproduce, I can help. |
thank you, is there any known issue when converting a unit8List file to Image file, with decodeImage(_)... what I was trying to do is final img.Image? decodedImage = img.decodeImage(uint8ListImage!); getting result but showing RangeError inside iterator |
What does the Uint8List contain? An image file? What format? |
Uint8List contains image file of PNG format |
Any way you can send me the contents of that buffer? |
sure, thank you. Please check attached file |
Hello, I'm sorry to bother you, but do you have any updates on this issue? I am still unable to update this package for my project. Thank you. |
Sorry I got busy and forgot to get back to this. I'll take a look as soon as I can. |
I apologize for forgetting to look into this earlier. I tested the data from the file you attached, and unfortunately (or fortunately?) I didn't have any issues loading or saving it. My test was const data = [....]; // from the uint8Image.txt file
final bytes = Uint8List.fromList(data);
final image = decodeImage(bytes);
encodePngFile("d:/test.png", image!); |
Hello sir, Displaying image is perfectly work with me. did you find any error inside iterator field? just to confirm if its a issue with my input |
I did not find any errors. |
Thank you! |
I was trying to decode a uint8List using decodeImage method. when debug, seems an error inside the decoded Image. it affects the further processes with the image file. issue found after updating version from 3.3.0 to 4.1.3
The text was updated successfully, but these errors were encountered: