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.
This commit is contained in:
Ryan Malloy 2026-02-13 03:50:58 -07:00
parent 4da9fe4886
commit 254be36948

View File

@ -15,7 +15,7 @@ from wireviz.wv_utils import (
smart_file_resolve, 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() # TODO: Share cache and code between data_URI_base64() and embed_svg_images()