Open Riven-Spell opened 1 year ago
Thanks for investigating what works and what doesn't, that may help. I guess that the difference regarding encrypted vs non-encrypted rooms is, that the server is able to generate suitable thumbnails for display when images aren't encrypted.
I should note this bug doesn't reproduce in other clients, e.g. fluffychat. So maybe not server related(?)
When I was working with an element dev earlier, we narrowed it down to something going wrong w/ megolm E2EE. IIRC his client couldn't even decrypt the message. But that'd be upstream. We can chat and test things if you'd like to repro. @solstice:blatant-lizardry.moe
I can reproduce with your linked image. Of course this is very likely a client issue, since everything works regarding downloading the image and opening externally, just the internal rendering is broken. The server thumbnail generation I mentioned is an additional mechanism that's available in non-encrypted rooms for getting a smaller picture to render in the timeline, which may explain why rendering is not broken there. I did not want to imply this could be a server issue, this doesn't sound like it would be at all. Also, since downloading works, this is very likely not an E2EE issue.
I should add some more context.
The images in question appear to display right during sending, but not upon arrival.
Describe the bug PNGs above a certain size (so far as I can tell ~3000x4000 pixels) will not display properly in E2EE rooms.
To Reproduce Steps to reproduce the behavior:
I have yet to find any format other than PNG that is capable of reproducing this exact bug on SchildiChat.
Expected behavior The image should display properly.
Screenshots The first image is a lower res jpeg (1920x1080). This displays fine. The second image is a higher res png (4800x3400). This does not display. The third image is a even higher res jpeg (5016x3088). This displays fine. The fourth image is the same image as the second, but converted to webp (4800x3400). This displays fine.
![image](https://github.com/SchildiChat/SchildiChat-android/assets/13892402/19ff4fce-0519-4700-a442-a49a0f65b61d)
Smartphone (please complete the following information):
Additional context
Upstream relevance