Skip to content

Preview not working for SVGs #2746

Open
@bromiesTM

Description

@bromiesTM

Describe the bug
The viewer is not working for .svg files. No Preview. No file icon. Just the black background.
Seems to be fixable by adding a height: {x}px; to the preview img HTML Element.

Happened with =OC\Preview\SVG enabled and disabled

To Reproduce
Steps to reproduce the behavior:

  1. Go to files app.
  2. Upload SVG file
  3. Open viewer for the SVG file via context menu
  4. See error
    Expected behavior
    A preview of the SVG or the file type icon depending on Preview config

Screenshots

Image

Desktop (please complete the following information):

  • Browser: Chrome
  • Version 133.0.6943.141

Browser log
Nothing suspicious. No Warning or Errors just debug info

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions