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.
🏗 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.