image_pixels icon indicating copy to clipboard operation
image_pixels copied to clipboard

[web] Error: Failed to encode the image into bytes.

Open IvanDeluxe opened this issue 3 years ago • 4 comments

Hi :)

After upgrading to flutter 3.0.0 we're unable to use image_pixels @ web:

Error: Failed to encode the image into bytes.
    at Object.createErrorWithStack (http://localhost:52985/dart_sdk.js:5093:12)
    at Function._throw (http://localhost:52985/dart_sdk.js:20399:18)
    at Function.throwWithStackTrace (http://localhost:52985/dart_sdk.js:20396:18)
    at async._AsyncCallbackEntry.new.callback (http://localhost:52985/dart_sdk.js:40921:18)
    at Object._microtaskLoop (http://localhost:52985/dart_sdk.js:40778:13)
    at _startMicrotaskLoop (http://localhost:52985/dart_sdk.js:40784:13)
    at http://localhost:52985/dart_sdk.js:36261:9

We've found this issue which seems to be the cause of it?

Any help is appreciated.

Thanks,

Ivan

IvanDeluxe avatar May 16 '22 20:05 IvanDeluxe

I don't use Flutter web, and can't fix this.

The issue you pointed to could be the problem, so I suggest you wait for it to be fixed and try again. Could you please let me know when you have that info?

marcglasberg avatar May 16 '22 20:05 marcglasberg

Indeed 🔥

IvanDeluxe avatar May 16 '22 20:05 IvanDeluxe

@marcglasberg Your library supports Web as per pub.dev but here you telling You don't use Flutter web. What a joke.

Savan7002 avatar Sep 18 '22 11:09 Savan7002

@Savan7002 Flutter web support didn't even exist when this package was created, and pub.dev included this statement about web automatically, without asking me. Joke is me having to respond to entitled people on the internet. Please, be polite. As I do not work for you and this is open source, you can go and fix the problem yourself, and then I'll accept your PR.

marcglasberg avatar Sep 19 '22 18:09 marcglasberg