[PR #5418] Add .svg extension to supported image file extensions #6495

Open
opened 2026-02-05 10:33:47 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/5418
Author: @tjone270
Created: 1/16/2025
Status: 🔄 Open

Base: developmentHead: patch-1


📝 Commits (1)

  • 4dbfefd Add .svg image file support

📊 Changes

5 files changed (+17 additions, -3 deletions)

View changed files

📝 app/Exports/ZipExports/Models/ZipExportImage.php (+1 -1)
📝 app/Http/Controller.php (+1 -1)
📝 app/Uploads/ImageResizer.php (+13 -0)
📝 app/Uploads/ImageService.php (+1 -1)
📝 app/Util/WebSafeMimeSniffer.php (+1 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/5418 **Author:** [@tjone270](https://github.com/tjone270) **Created:** 1/16/2025 **Status:** 🔄 Open **Base:** `development` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`4dbfefd`](https://github.com/BookStackApp/BookStack/commit/4dbfefddd84e6adfe84e29bf6f276e0ab648c8cf) Add `.svg` image file support ### 📊 Changes **5 files changed** (+17 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `app/Exports/ZipExports/Models/ZipExportImage.php` (+1 -1) 📝 `app/Http/Controller.php` (+1 -1) 📝 `app/Uploads/ImageResizer.php` (+13 -0) 📝 `app/Uploads/ImageService.php` (+1 -1) 📝 `app/Util/WebSafeMimeSniffer.php` (+1 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:33:47 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6495