-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
RangeError running encodeBmp #455
Comments
I tested this locally, and did not get a RangeError. final img = await decodePngFile('test/_data/png/hungry.png');
await encodeBmpFile('$testOutputPath/bmp/hungry.bmp', img!); Do you get the range error on the decodeImage, or the encodeBmp? |
Hm, I wonder if github does any processing on the uploaded image file. Let me test that idea tomorrow. |
Also make sure you do a pub update to get any recent changes, since I've been pushing at a pretty fast pace recently. |
This comment was marked as outdated.
This comment was marked as outdated.
After further testing, I'm still having problems with I've uploaded 3 pictures.
Test setuphungry.png (179px width)Test:
|
@brendan-duncan Hope you had a great weekend! Have you had a chance to take a look at this? I hope my above tests make sense 🙂 |
Sorry, I missed seeing this was re-opened. I'll make sure to look into it again. |
I pushed some fixes to git. I'll publish soon.
|
The updates have been published. |
@brendan-duncan Awesome, that seems to have fixed most of it. Much appreciated! There's only one test that still fails, which is the Test:
|
Sorry about that, missed that one. It's fixed now in git. I'll push the fixes out later today (my time). |
I'll give it a test tomorrow, really appreciate the snappy responses! 👍🏻🙂 |
@brendan-duncan, do you have any expectations for release with this fix? I investigated quite a few errors in my tests and the reason apparently is the issue. |
@larssn, Can you share more information about your tests? I am using blurhash_dart and i have problems like this. |
Did I not release this? How has it been a week? Sorry about that, I'll get it released as soon as I can (after my busy work morning). |
I have this error using latest version from In the versions below, I don't:
@larssn, Do you have any idea what it could be? |
@felipecastrosales Im pretty sure its fixed in 4.0.13, which it sounds like is close to release. |
@felipecastrosales image ^3.2.0 is the old version of the Image library, which wouldn't have the issues described here because it didn't support palettes. It probably has a different (or related) bug, but I wouldn't be able to fix it because pub doesn't support branching versions, so I wouldn't be able to release a 3.2.1 patch. I'll get 4.0.13 released asap, but it means blurhash_dart (whatever that is) would have to update to the 4.x version of the Image library. |
@brendan-duncan, interesting, thank you very much for sharing your idea and for the time. |
I pushed 4.0.13, which I think addresses the issues in this thread. It looks like blurhash_dart was updated to use image 4.* (https://github.com/justacid/blurhash-dart/blob/master/pubspec.yaml), so hopefully if you can get your dependencies updated, it should pull in the latest version with the fixes in it. |
@larssn your problem is resolved? here persists. |
@felipecastrosales You haven't verified if you updated the Image library to 4.0.13 or if you're still on 3.2.0. |
@brendan-duncan I updated yes, I even tested it in |
If you can send me a small repo example I can test and fix whatever's wrong. But without that there's not much I can do. |
Just a heads up: Finally had a chance to test out |
Situation resolved in blurhash_dart. 🎉 Thanks for opening up the discussion here, @larssn. And success to you, @brendan-duncan. 🙏 |
Hello again 🙂
Ran into a
RangeError
when running:On the following image:
This is using Flutter.
The text was updated successfully, but these errors were encountered: