images are displayed without resizing
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- mobile-dev, performance
Research direction
Start by reading PhotoView.java at setImageURI() around line 122 and the surrounding image-loading path. Clarify the target resize policy and expected API behavior; done means images are resized before decoding while PhotoView display and zoom interaction continue to work.
Written by the indexing model from the issue text.
Description
🏗 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.
- Dominant language
- Java
- Stars
- 18.8k
- Forks
- 3.9k
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Baseflow/PhotoView
-
PohenOpen
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
KhanOpen
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
.Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
842Open
Difficulty 1/5 Under an hour Newbie friendliness 10/100
-
OkOpen
Difficulty 5/5 Over a week Newbie friendliness 1/100
All issues in Baseflow/PhotoView
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
MaikuB/flutter_appauth#683 ·
-
type: possible bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
grimmory-tools/grimmory#2850 · 1 comment ·
Maintainers usually reply within 1 day