Skip to content

[structurizr-export] Support local icon files and embeded data images #427

@mwz

Description

@mwz

Description

Currently the AbstractPlantUMLExporter only allows remote images to be included in the exported diagrams; see:

protected boolean elementStyleHasSupportedIcon(ElementStyle elementStyle) {
return !StringUtils.isNullOrEmpty(elementStyle.getIcon()) && elementStyle.getIcon().startsWith("http");
}

I'd like to propose to support local images as well as data URIs to bring the functionality in line with the image support in structurizr.

Structurizr already supports local pngs, jpgs and svgs as well as image data URIs, so this change would make the export functionality consistent with the rest of the project.

Priority

Low (I'm willing to make a pull request - please confirm approach first)

More information

As far as I know C4 Plantuml supports local files and data URIs as image sprites, so this should work, but I've only tested it with svgs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions