Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Visio image png transparent background

116 views1st October 2025
0
Stefan Schedletzky [DevOps Enabler]2.23K 30th September 2025 2 Comments

Hi Dojo,

I'm trying a new Visio drawing and I want to show the channel name and the logo of a specific channel.
Here is my first try:

Everything from the shape which is not filled with the logo is black. But I would like to have the alarm color here. How can I achieve it?

New Image

Stefan Schedletzky [DevOps Enabler] Edited question 1st October 2025
Jarno Lernou [SLC] [DevOps Enabler] commented 1st October 2025

Hi Stefan, from where is the image coming and what is the aspect ratio. Are the dimensions consistent for different images?

Stefan Schedletzky [DevOps Enabler] commented 1st October 2025

Hi Jarno,
aspec ratio is of course different because it's different TV channels. The picture URL is in a table in Dataminer. I'm opening just a link with a png file.

What I also tested an image viewer with transparent background which is also not working.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Jarno Lernou [SLC] [DevOps Enabler]5.17K Posted 1st October 2025 4 Comments

I tried a couple of things and the best solutions ended up a custom HTML page (that you store in the Skyline DataMiner/Webpages folder. By doing this, you have full control of how you would like to visualize the picture. In my case I have allowed for one query parameter (img url). As for adding the severity, you can choose to either pass it along or create another shape in the Visio itself.

One thing to know is that you will have to encode the URL for it to work. You can do this with the EscapeDataString placeholder.

Here's how it's configured in my Visio:

Link: #https://<DMAIP>/index.html?img=[EscapeDataString:https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Google_%22G%22_logo.svg/1200px-Google_%22G%22_logo.svg.png]

Here's the webpage:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<style>
* {
margin: 0;
padding: 0;
}

html, body {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
overflow: hidden;
font-family: Arial, sans-serif;
color: #333;
}

#fallback {
text-align: center;
font-size: 18px;
}
</style>
</head>
<body>
<div id="fallback">No image parameter provided. Please use <code>?img=&lt;encoded_url&gt;</code></div>

<script>
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] === variable) {
return pair[1];
}
}
return false;
}

var imgUrl = decodeURIComponent(getQueryVariable("img"));
if (imgUrl && imgUrl !== "false") {
document.body.style.backgroundImage = "url('" + imgUrl + "')";
document.getElementById("fallback").style.display = "none";
}
</script>
</body>
</html>

Here's the result. Top image is simply doing a Link with the normal URL. Second image is by using the proposal above.

Jarno Lernou [SLC] [DevOps Enabler] Posted new comment 1st October 2025
Stefan Schedletzky [DevOps Enabler] commented 1st October 2025

Hi Jarno,
many thanks for your help. But it's not working on my system. I have attached a picture at the original question.
Can you please try it on your site when an alarm shape is behind it?

Jarno Lernou [SLC] [DevOps Enabler] commented 1st October 2025

The shape linked to the webpage is not transparent, even if the picture is. What you can do is pass along a second query parameter to pass the severity (e.g. general parameter Alarm Severity, 65008). By having this, you can do what ever you want in the web page itself (e.g. color the background), i.e. you just need to feed it with the data needed. In my opinion I would use the web page purely for showing the stretched image and use Visio shapes to show other items like the alarm color.

Stefan Schedletzky [DevOps Enabler] commented 1st October 2025

Good idea with the alarm severity, but is 65008 also available for a service?

Jarno Lernou [SLC] [DevOps Enabler] commented 1st October 2025

This parameter is not available for a regular service. It is available for an Enhanced Service though. You could in theory use placeholder related to Service Statistics (SERVICE STATISTICS:[#TotalAlarms]), but it did not work for me in the Link placeholder when I quickly tested.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin