Watermark in a sequence diagram

0 votes
asked Mar 20, 2018 in Wanted features by preetika (250 points)
Can I generate a watermark/hologram sort of thing in plantuml to specify my company name in the diagram?

2 Answers

0 votes
answered Mar 20, 2018 by plantuml (201,140 points)

You can use footer and header commands (see http://plantuml.com/commons )

Alice -> Bob: Authentication Request

<font color=red>Warning:</font>
Do not use in production.

center footer Generated for demonstration

commented Mar 22, 2018 by preetika (250 points)
This is unfortunately not what I need.
A watermark kind of feature is what I require
0 votes
answered Mar 20, 2018 by Anthony-Gaudino (7,820 points)

If you want an image that has transparency and covers the whole diagram, then I don't think it's possible.

But you may be able to use ImageMagick or another tool to automate the process of adding a watermark to your diagrams.

I had created a Python script that uses ImageMagick to do exactly this, so if you need it just let me know.

commented Mar 22, 2018 by preetika (250 points)
I guess I need the watermark feature mentioned by you. Can you let me know how to go about it?
commented Mar 23, 2018 by Anthony-Gaudino (7,820 points)
It's not a PlantUML feature. You can add the watermark to the image generated by PlantUML using  another tool.

I recommend ImageMagick because it's free software and can be easily used in scripts, but you can use any other software you want to accomplish this task.


If you want to use ImageMagick then, if you're on Linux you should be able to easily download ImageMagick, in Debian for example, it's available on the repository.

If you're using Windows, you must download it, it's available on https://www.imagemagick.org/script/download.php#windows

After installing, then read the documentation I supplied on https://www.imagemagick.org/Usage/annotating/#watermarking


You can get the Python script I told about here: https://drive.google.com/open?id=1mhPue7eBbKomrL18qMkn6XSeoiOBuxJ3
Probably you will need to make changes on it to fit your needs.