fix: inline device images as data URIs in offline SVG export

strip_svg_hyperlinks() removed every href, including on <image>
elements that reference device-type photos, leaving devices with
images blank in the exported file. Non-anchor hrefs (currently only
<image>) are now resolved through an optional image_loader callback
and embedded as base64 data URIs instead of being stripped; anchor
unwrapping is unchanged. RackElevationOfflineSVGView wires this up to
NetBox's MEDIA storage.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Sonnet 5 committed 2026-09-17 15:20:43 +02:00
1 parent 23acebcf17
commit ead171d546
5 files changed
+102 -14

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
from netbox.plugins import PluginConfig, get_plugin_config
__version__ = "0.11.2"
__version__ = "0.11.3"
class NetBoxUtilitiesConfig(PluginConfig):