element-android icon indicating copy to clipboard operation
element-android copied to clipboard

Some sent images don't show in element android, in element-web they do

Open ghost opened this issue 3 years ago • 8 comments

Steps to reproduce

When a particar image is sent in matrix, element android won't load it. The image in question is this: https://i.redd.it/6mxd4z5976b91.png. This applies for some other images also.

This is what shows in the app itself:

Screenshot_20220713-163319_Element

However, in element web it shows normally.

Outcome

What did you expect?

An image to be showed normally in element android.

What happened instead?

A blank space in the place of the image shows instead.

Note: the image can still be downloaded by clicking in the blank space and pressing download

Your phone model

Nokia 6

Operating system version

Lineage OS 15.1

Application version and app store

1.4.25 [40104250] (F-1f34d368) (F-droid)

Homeserver

matrix.based-jacob.xyz

Will you send logs?

Yes

Are you willing to provide a PR?

Yes

ghost avatar Jul 13 '22 15:07 ghost

I've noticed that if a message source has a body with mimetype "image/png", or has msgtype "m.image", it will display the image. But if its mimetype is "text/plain" or "text/html" and an image is included, the image isn't visible.

In other words, an image won't show up in element-android if the message includes both image and text (but will on element-web and element-desktop).

pjaml avatar Sep 02 '22 15:09 pjaml

This issue still appears irregular. If i send many pictures around 4-5 MB, then only a few are really visible after few hours. The recipients only see black place holders. And the sent messages are only pictures no text added.

KeenMaron avatar Nov 28 '22 08:11 KeenMaron

Regretfully the issue still persists. Pixel 5 Lineage OS 20

Some photos sent in different client on desktop are not shown on Android client. Looks to be irrelevant to size.

evasil avatar Mar 22 '24 13:03 evasil

I'm currently experiencing this issue. Element on Android from F-Droid (GrapheneOS): Fully black images Element X on Android from F-Droid (GrapheneOS): Fully white images Element on Fedora from Flathub: Images displaying correctly Element on Windows: Images displaying correctly

I can't download broken images on Android. Element just does nothing, and Element X shows an error with no details upon clicking an image to enlarge it.

poiNt3D avatar Sep 06 '24 13:09 poiNt3D

Experiencing the issue on CrDroid. (Android 13)

Unbloated avatar Sep 06 '24 21:09 Unbloated

to me it seems this issue persists on android 12 and above since images load fine on windows, KDE neon, my iphone SE 2, alcatel 1 2021 running android 11 and my note 3 running android 9, but does not work on my moto g53 running android 14

syniansssssss avatar Sep 08 '24 21:09 syniansssssss