Skip to content
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 image is pixelated #472

Closed
cedvdb opened this issue Dec 11, 2022 · 1 comment
Closed

Web image is pixelated #472

cedvdb opened this issue Dec 11, 2022 · 1 comment

Comments

@cedvdb
Copy link

cedvdb commented Dec 11, 2022

Describe the bug

For an image containing text, which is 844x394 this result in an image which is very pixelated. It seems to work fine on android.

It also seems like this package resizes the original image, and I've some doubts about the resizing algo used as I've seen this problem in multiple packages, like assets generator or even the Image package. In case the image package is used to resize, the interpolation can be set to the one which adds a slight blur for better results. I believe it's the average one but I can't recall for certain.

Edit: yeah

interpolation: Interpolation.linear,

Also some direction about what ratio yields better results with this algo would be nice

Configuration

web

@jonbhanson
Copy link
Owner

Just pushed out an update to fix this.

doananhtuan22111996 pushed a commit to lux-studio-66/flutter_native_splash that referenced this issue May 27, 2023
…age processing from linear to cubic to improve image quality. Fixes jonbhanson#472.

(cherry picked from commit d67647b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants