WireViz icon indicating copy to clipboard operation
WireViz copied to clipboard

[Feature] Add company logo image in title block

Open raquenaengineering opened this issue 2 months ago • 2 comments

Hello, I have been trying to add the company logo as an image in the title block, but it seems such feature is unimplemneted. Is there any way I missed of adding a logo? I also tried to add it later in the HTML, which is possible, but every time I regenerate the file with Wireviz, I smash it (as expected).

With some guidance, I may be able to implement it for everyone, but I am not so into the code of wireviz yet.

Thanks!

raquenaengineering avatar Nov 06 '25 23:11 raquenaengineering

I suggest you copy one of the standard HTML templates, modify it according to your needs, and store it with a unique name either in the templates folder (if you plan to reuse it in many projects) or in the input folder. In a subfolder might also work. See a description in the HTML templates documentation and also demo02.

If you also specify a custom output folder, be aware of the #472 bug that is not yet fixed.

kvid avatar Nov 09 '25 21:11 kvid

Note that when you add an image to the HTML template that is stored as a separate image file, then you also must ensure that this separate image file (or a copy of it) is available when rendering the output HTML file in a browser. WireViz will not copy any such separate file to the output folder. To avoid separate image files, I can recommend embedding images in the HTML template as SVG for vector images or <IMG> tags containing base64 encoding of JPG/PNG/GIF for bitmap images. WireViz already does this with the diagram image.

kvid avatar Dec 06 '25 11:12 kvid