[HOLD for payment 2021-12-13][$500] Image is blurry and not rendered in correct resolution in mobile devices
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Navigate to a conversation
- Send this image
- Tap on the image and zoom
Expected Result:
Image should display the same resolution it was sent.
Actual Result:
Image is blurry.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:
Where is this issue confirmed?
- iOS
- Android
Version Number: 1.0.96-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation


Expensify/Expensify Issue URL:
Issue reported by: @PrashantMangukiya Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1631206579123200
Triggered auto assignment to @chiragsalian (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Looking into this today
Okay for starters I just tested on regular images and they looked fine. Might be something just specific to the sample image as its very tall. I don't think this is daily since regular images appear just fine and this is quite an edge case with the sample image provided. Either way, i'm testing the sample image next.
Trying to figure out how this works. Either way i dont think its a daily since its a pretty edge case scenario. Demoting to weekly for now as i continue to investigate.
From what i can tell the image obtained from the server is the correct size, its just when we scale it down here we seem to loose image quality. We could always load an image with 100% width as the parent and allow the height to be scrolled. This could solve the problem but i'm unsure if react-native-image-pan-zoom allows for that.
Anyway since this is purely an issue with the front end code i'll place the External label on it.
Triggered auto assignment to @NicMendonca (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
still on hold
Please refer to this post for updated information on the n6 hold, we've raised the bonus to $250 for all issues where a PR is created before the N6 hold is lifted.
@PrashantMangukiya @isagoico I can't seem to reproduce this on mobile. Can you confirm if images are still burry?
@PrashantMangukiya @isagoico bump!
So so sorry @NicMendonca! I missed this before. I'm still able to reproduce the issue on my side

Thanks @isagoico !
Upwork job post: https://www.upwork.com/jobs/~01697274c4723c39c5
Doubled job to $500 - https://www.upwork.com/jobs/~012d2ac28c5b8b0757
Root cause of the issue is incorrect imageWidth & imageHeight calculation for ImageZoom component inside ImageView. Fixing the calculation based on device aspect ratio resolves the bug.
https://user-images.githubusercontent.com/6880914/140296572-34669a62-05d1-4e74-8834-324dc75d8549.mp4
@NicMendonca Applied for the upwork job posting.
Triggered auto assignment to @iwiznia (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Sorry @aswin-s! Someone will review your proposal shortly.
We are placing all non-critical issues on hold while we're on a company offsite. The hold is expected to be lifted on 11/19 (but could go longer). For any PRs that are submitted before or during the hold, we will add a $250 bonus payment.
@iwiznia @NicMendonca Is the hold gonna affect proposal reviews as well?
Root cause of the issue is incorrect imageWidth & imageHeight calculation for ImageZoom component inside ImageView. Fixing the calculation based on device aspect ratio resolves the bug.
That seems correct, but can you give a bit more context on why the calculation is wrong and what's the fix?
@iwiznia @NicMendonca Is the hold gonna affect proposal reviews as well?
No