Skip to content

App will not show images with a filesize above 5 MB #6190

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

Closed
Bueddl opened this issue May 30, 2022 · 1 comment · Fixed by #6290
Closed

App will not show images with a filesize above 5 MB #6190

Bueddl opened this issue May 30, 2022 · 1 comment · Fixed by #6290
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@Bueddl
Copy link

Bueddl commented May 30, 2022

Steps to reproduce

  1. Send an image with a size larger than 5 MB (5242880 Bytes) as a message in a room
  2. Wait for it to be uploaded
  3. Optionally tap on the image to enlarge it

Outcome

What did you expect?

The image should be rendered.

What happened instead?

There is a blank space where the image should be. It does not matter whether the image is sent by someone else or on a different client. If it is uploaded from the local client then it will just be visible until the image has been sent and disappear afterwards.

The image is neither displayed in the room directly nor in the view that appears when tapping on the image.

Outcome: https://files.bueddl.de/files/Screenshot_20220530_154211_im.vector.app.jpg (above is the 5 MB image, the empty space should show the other image that is 2 bytes larger than 5 MB).


I have attached two test images for testing. One that is exactly 5 MB (5242880 Bytes) that is displayed in the Android app and one that is 2 Bytes larger which is not displayed in the app. We tested with a bunch images with different sizes, however these two should be enough to reproduce. Note that we only tested with png images.

PNG-Image file with exactly 5 MB (5242880 Bytes)
PNG-Image file that is 2 Bytes larger than 5 MB (5242882 Bytes)

Let me know if I can help or if you need more informations!

Your phone model

Huawei P10 Lite

Operating system version

Android 9

Application version and app store

Element version 1.4.14 [40104142], OLM version 3.2.10

Homeserver

No response

Will you send logs?

Yes

@Bueddl Bueddl added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label May 30, 2022
@ouchadam
Copy link
Contributor

this may have been fixed with #6290 (likely to be part of v1.4.22)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants