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
[web] encodeJPG
introduces Artefacts on web
#129548
Comments
Thanks for reporting. How does the output compare to Firefox and Safari? Background: HTML, macOS, and CanvasKit use different image decoding methods. HTML uses the |
@ltOgt On the web, instead of using encodeJpg, use the code below.
|
Is there an existing issue for this?
Steps to reproduce
web
andmacos
blurhash_dart: ^1.0.2
topubspec.yaml
main.dart
with the following codeweb
andmacos
main.dart
:Expected results
The JPG encoded image should be identical on
web
and onmacos
Actual results
The JPG encoded image has artefacts on
web
:Note the bottom edge of the image on
web
Interestingly, reloading web results in slightly different artefacts each time:
Code sample
Same as above in the steps to reproduce:
main.dart
:Screenshots or Video
Same as in expected results above
Screenshots / Video demonstration
Interestingly, reloading web results in slightly different artefacts each time:
Logs
None
Flutter Doctor output
Tested both on
stable
and onmaster
Doctor output (stable)
Doctor output (master)
The text was updated successfully, but these errors were encountered: