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

images are displayed without resizing #814

Open
sunshinelwj opened this issue Nov 27, 2021 · 0 comments
Open

images are displayed without resizing #814

sunshinelwj opened this issue Nov 27, 2021 · 0 comments

Comments

@sunshinelwj
Copy link

🏗 Enhancement Proposal

I noticed that in the following code in PhotoView, images are displayed directly without resizing:
com.github.chrisbanes.photoview.PhotoView.java setImageURI() (line 122)
https://github.com/Baseflow/PhotoView/blob/master/photoview/src/main/java/com/github/chrisbanes/photoview/PhotoView.java#L121

For the images to be displayed, in many cases, they are larger than required. Because the bitmap display in an app is memory consumption, maybe we should resize the images before decoding them, which can reduce memory overhead and help make app more smooth in user interaction.

Thanks.

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

1 participant