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

Add .svg extension to supported image file extensions #5418

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

tjone270
Copy link

I've noticed that SVG images are not in the hardcoded list of supported image extensions. Having tested SVGs on my BookStack instance in the WYSIWYG editor these behave normally, so think it's worthwhile having this as an out-of-the-box supported image.

* Don't attempt to resize SVG images.
* Add SVG mime type to image validation rules.
* Add SVG mime type to accepted image types.
* Add SVG mime type to the sniffer's safe list.
@ssddanbrown
Copy link
Member

Related to #1103

Thanks for offering this @tjone270.
This is a path I've thought about and tested before:

My issue comes down to SVG being a complex format that we can't assure wider support for (like in PDF exports) and which brings a wider range of expectations upon normal images (interactivity).

Maybe the demand/value is enough for implementation regardless of compromise.
Think I need to dwell on this, I might ask about this via the issue for feedback.

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

Successfully merging this pull request may close these issues.

2 participants