Skip to content
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

SVG images fail to render #28864

Open
xu-shawn opened this issue Jan 3, 2025 · 5 comments
Open

SVG images fail to render #28864

xu-shawn opened this issue Jan 3, 2025 · 5 comments
Labels
A-Media O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Cannot-Reproduce

Comments

@xu-shawn
Copy link

xu-shawn commented Jan 3, 2025

Steps to reproduce

  1. Launch element app
  2. Send an SVG (Scalable Vector Graphics) image
    image

A similar issue occurs on the browser application (app.element.io)
image

Outcome

What did you expect?

Correcly rendered SVG image

What happened instead?

No rendering. Blurred rendering on the browser app

Operating system

Debian

Application version

Element version: 1.11.89

How did you install the app?

https://element.io/download#linux

Homeserver

No response

Will you send logs?

No

@dosubot dosubot bot added A-Media O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist labels Jan 3, 2025
@t3chguy
Copy link
Member

t3chguy commented Jan 14, 2025

@xu-shawn
Copy link
Author

Interesting. I can reproduce this with app.element.io on MacOS with Firefox 134 (clean profile), and Debian with Firefox 133 as well as Chromium 131.0.6778.264 (clean profile). I tried on develop.element.io on Debian with Firefox 133 and it still breaks on my end.

@BrandenXia
Copy link

i can also reproduce with Chromium 131.0.6778.265

@xuhdev
Copy link

xuhdev commented Mar 6, 2025

@t3chguy I found the bug is only reproduciable if the room has enabled end-to-end encryption. Svg files can display properly without end-to-end encryption.

It may be a good idea to use a different svg file, because the file you used to experiment seems to suffer from #29432 for me.

@xuhdev
Copy link

xuhdev commented Mar 6, 2025

@t3chguy These are the steps that I used to reproduce the bug in the latest Chrome Version 133.0.6943.141 (Official Build) (64-bit):

  1. create a new room. Make sure "Enable end-to-end encryption" is checked.
  2. Upload this svg file: https://raw.githubusercontent.com/element-hq/logos/382dadaf56fbcc12cf1cd950781ed8edef85fb3a/matrix/matrix%20favicon.svg

But a png file can be previewed.

Screenshot:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Media O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Cannot-Reproduce
Projects
None yet
Development

No branches or pull requests

4 participants