# Watermark feature

**URL:** <https://discourse.slicer.org/t/watermark-feature/8252>\
**Category:** Feature requests\
**Tags:** feature\
**Created:** [September 1, 2019, 10:29pm UTC](https://discourse.slicer.org/t/watermark-feature/8252 "2019-09-01T22:29:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 1, 2019, 10:29pm UTC](https://discourse.slicer.org/t/watermark-feature/8252/1 "2019-09-01T22:29:33Z")

</div>

@jcfr @pieper @lassoan.

We finished our first SlicerMorph workshop and our trainees pretty much feel in love with Slicer and its capabilities (check out [https://twitter.com/SlicerMorph/status/1168022612313686016](https://twitter.com/SlicerMorph/status/1168022612313686016) for some visualizations). We got four more to go, and I am hoping Slicer will have even large following within the biosciences community. Even the alpha version of SlicerAnimator liked quite a bit.

Anyways, I thought it would be cool to display an optional small watermark in the volume rendering window that will essentially show the nice sticker Kitware designed (from this thread [Feedback on Slicer Sticker design](https://discourse.slicer.org/t/feedback-on-slicer-sticker-design/6395)).

I am sure a lot of them would proudly display, if it is only a single click to enable it. I would.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 1, 2019, 11:43pm UTC](https://discourse.slicer.org/t/watermark-feature/8252/2 "2019-09-01T23:43:43Z")

</div>

(First - thanks for posting the images from the workshop - glad it went well!)

A watermark is a great idea. There’s actually a [vtkLogoWidget](https://vtk.org/doc/nightly/html/classvtkLogoWidget.html) that was added to support exactly this use case in Slicer (search for ‘watermark’ on [this page](https://www.slicer.org/wiki/Slicer3:VisualBlog)) but we never ended up enabling it for whatever reason.

Anyway, if you want to try it out here’s a snippet that works in any recent slicer. I’m sure we can improve the esthetics.

```auto
import os

logoURL = 'https://www.slicer.org/w/images/7/71/3DSlicerLogo-DesktopIcon-128x128.png'
pngPath = os.path.join(slicer.app.temporaryPath, "SlicerLogo.png")
slicer.util.downloadFile(logoURL, pngPath)

reader = vtk.vtkPNGReader()
reader.SetFileName(pngPath)
reader.Update()

logoRepresentation = vtk.vtkLogoRepresentation()
logoRepresentation.SetImage(reader.GetOutput())
logoRepresentation.SetPosition(0,0)
logoRepresentation.SetPosition2(.2, .2)
logoRepresentation.GetImageProperty().SetOpacity(.7)

logoWidget = vtk.vtkLogoWidget()
renderWindow = slicer.app.layoutManager().threeDWidget(0).threeDView().renderWindow()
logoWidget.SetInteractor(renderWindow.GetInteractor())
logoWidget.SetRepresentation(logoRepresentation)

logoWidget.On()
renderWindow.Render()

```

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 4, 2019, 2:46am UTC](https://discourse.slicer.org/t/watermark-feature/8252/3 "2019-09-04T02:46:15Z")

</div>

I’ve added watermark option to Screen Capture module (in Advanced section):

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/9/09e06aa583db44081c9695e441b89559f328154b.png)

Example watermark with opacity = 100%:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/2/22fb614f3b26fc3a5e092277aaf60d8930fd6bb5.jpeg)

Example watermark with opacity = 40%:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/a/5ac873bd8d5e3c63084ad46cc899f31589049267.jpeg)

The feature will be available in Preview Release rev28477.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 4, 2019, 3:14am UTC](https://discourse.slicer.org/t/watermark-feature/8252/4 "2019-09-04T03:14:43Z")

</div>

thanks @lassoan !!!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 21, 2023, 3:13am UTC](https://discourse.slicer.org/t/watermark-feature/8252/5 "2023-03-21T03:13:38Z")

</div>


