Closed deakjahn closed 4 years ago
Oh I see the point. BMP are raw encoding.
Yes, you do the same in the normal branch, anyway, ui.PixelFormat.rgba8888
. So, it's not that big of a difference. Just a header in front. Still, it should work normally...
When first writing the code I was looking for this but wasn't aware of this encoding. Thx.
Temporary workaround for https://github.com/flutter/flutter/issues/45190
On the web, there are various issues with Skia async functions no returning. As I mentioned in that thread, I suspect the
HtmlCodec
to be at fault. Until such time as this is fixed, I present the following workaround: on Flutter Web, we can create a BMP image on the fly. Considering the small size of the blurhash image, there is really no need for the compression that PNG or JPG could provide, so this is the cheapest temporary solution.