From 254be36948aaabbb54722db6660bf271fa9c22e4 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Fri, 13 Feb 2026 03:50:58 -0700 Subject: [PATCH] Fix SVG MIME type for embedded images (port of upstream PR #443) SVG images embedded in connector/cable nodes failed to display because the MIME type was image/svg instead of image/svg+xml per W3C spec. --- src/wireviz/wv_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wireviz/wv_output.py b/src/wireviz/wv_output.py index b9cfd78..084b464 100644 --- a/src/wireviz/wv_output.py +++ b/src/wireviz/wv_output.py @@ -15,7 +15,7 @@ from wireviz.wv_utils import ( smart_file_resolve, ) -mime_subtype_replacements = {"jpg": "jpeg", "tif": "tiff"} +mime_subtype_replacements = {"jpg": "jpeg", "svg": "svg+xml", "tif": "tiff"} # TODO: Share cache and code between data_URI_base64() and embed_svg_images()