Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Thumbnails don't work with SVG #3369

Open
Dreamsorcerer opened this issue Apr 22, 2024 · 1 comment
Open

Thumbnails don't work with SVG #3369

Dreamsorcerer opened this issue Apr 22, 2024 · 1 comment

Comments

@Dreamsorcerer
Copy link

Background information

  • Dendrite version or git SHA: 0.13.7
  • SQLite3 or Postgres?: Postgres
  • Running in Docker?: No
  • go version: 1.21
  • Client used (if applicable): Element Web

Description

  • What is the problem: Uploaded an SVG as a Spaces icon. No icon appears in UI.
  • How is this bug manifesting: Error log says "Failed to read src file" MediaID=3e59ec584581583cdc99db373f07ced46aeadb9bc0388b6abd16fdfaa439cf2a error="image: unknown format" req.id=KzRl2SSkLDWT req.method=GET req.path=/_matrix/media/v3/thumbnail/.../3e59ec584581583cdc99db373f07ced46aeadb9bc0388b6abd16fdfaa439cf2a src=/var/www/matrix/media_store/w/Y/F5VC6SeTYdF4PdcmE21ih6xLVVu7Q4LJx0HvqrzGE/file

Steps to reproduce

@Dreamsorcerer
Copy link
Author

Isn't this also a flaw in the client or spec? If the image is an SVG, then it shouldn't be making multiple requests for different thumbnails, it should just display the original image.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant