JankariTech / web-app-presentation-viewer

ownCloud Web extension to view markdown presentation slides
Apache License 2.0
4 stars 1 forks source link

[Bug]: SVG files cannot be used as images #85

Closed individual-it closed 1 month ago

individual-it commented 1 month ago

Is there an existing issue for this?

Describe the bug

PNG files work fine, but not SVG

Steps To Reproduce

create an presentation with an image like ![image](./somefile.svg)

Expected Behavior

image is shown

Actual Behavior

image is not loaded

Examples, Code Samples, or Screenshots

No response

Environment

What browsers are you seeing the problem on?

Firefox

saw-jan commented 1 month ago

ocis-web doesn't support .svg file to be opened by image viewer. That's why the extension is also not building the required url for .svg files. It's because the svg mimetype is not included in the mimetypes list.

We should be able to fix it for the extension by just adding the required svg mimetype.