-
Notifications
You must be signed in to change notification settings - Fork 548
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
Pixelated image (bad quality) when used with flutter_advanced_networkimage package #140
Comments
I have encountered the same problem. After investigations, I found that the problem is caused by the way of handling zooming. In I think there can have two solutions. First, modify the code to make Image scales itself, e.g.:
The Image will scale itself with a high-quality algorithm. However, this solution may change the current zooming logic, for example Second, it may be possible to use another widget like Thank you for providing this excellent widget. Looking forward for the fix :) |
Since this is happening only to Making image scale itself would break so many use cases (container overlapping, custom child, etc) that would make this change not viable. Photo View is one of the most used widgets out there, we have to be careful with updates in the core. And with all that said, the scale is not the only transformation that is done to the image, translate e rotateZ are also applied. The investigation must look into the internal behavior of:
This one will be hardcore. |
Is there any progress or a temporary solution for this issue? |
@MiaYi Can you please submit that on a different issue? |
try this PR #228 |
I use
PhotoViewGallery
with image provider fromflutter_advanced_networkimage
package.The resulted images seem pixelated, even without zooming in. When it's only
flutter_advanced_networkimage
image provider used withoutPhotoViewGallery
(e.g. inImage
widget) - the image looks sharp.I assume it should not matter what image provider is used for the plugin, as long as it's a subclass of
ImageProvider
. Hence, filing the issue forphoto_view
package.Please let me know what causes the images to appear pixelated (low-resolution) while the source image is high-res. My assumption is that the plugin ignores native resolution of the images, drawing them at max resolution of
PhotoViewComputedScale.contained
, producing pixelated view.My code:
The text was updated successfully, but these errors were encountered: