[PR #14160] [MERGED] Add SVG to transparent image types #13864

Closed
opened 2026-02-07 07:20:23 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/14160
Author: @theguymadmax
Created: 5/23/2025
Status: Merged
Merged: 5/23/2025
Merged by: @crobibero

Base: masterHead: svg-fix


📝 Commits (1)

  • 12876e9 Add SVG to transparent image types

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/Jellyfin.Drawing/ImageProcessor.cs (+1 -1)

📄 Description

Changes
SVG files were not included in the _transparentImageTypes list, which caused them to be rendered with an opaque background. This change adds .svg to that list to preserve transparency when processed.

Before:
1

With Fix:
3

Issues
Fixes: #13956
Fixes: #3941
Other clients have already implemented workarounds for this issue, ex: #301


🔄 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/jellyfin/jellyfin/pull/14160 **Author:** [@theguymadmax](https://github.com/theguymadmax) **Created:** 5/23/2025 **Status:** ✅ Merged **Merged:** 5/23/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `svg-fix` --- ### 📝 Commits (1) - [`12876e9`](https://github.com/jellyfin/jellyfin/commit/12876e906d2da023ffdd24e0dd13eb8212e883b4) Add SVG to transparent image types ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/Jellyfin.Drawing/ImageProcessor.cs` (+1 -1) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** SVG files were not included in the` _transparentImageTypes` list, which caused them to be rendered with an opaque background. This change adds `.svg `to that list to preserve transparency when processed. Before: ![1](https://github.com/user-attachments/assets/18a1406f-2ffa-4fcc-b090-737ba8e41382) With Fix: ![3](https://github.com/user-attachments/assets/feacfc21-380b-4167-8463-01f4efa76b7c) **Issues** Fixes: #13956 Fixes: [#3941](https://github.com/jellyfin/jellyfin-androidtv/issues/3941) Other clients have already implemented workarounds for this issue, ex: [#301](https://github.com/jellyfin/jellyfin-roku/issues/301) --- <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-07 07:20:23 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13864