Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
catoriana
Regular Visitor

Adding Images to my Custom Visuals Project

How do you add static images to a Custom Visual using the new Developer Tools?

I have added the images I want to use under the "assets" folder in my project,  however when running my custom visual through the Power BI online service I get the "404 resource not found" error.

 

4 REPLIES 4
MawashiKid
Resolver II
Resolver II

You may take a look at Jon Gallant blog on
Power BI Custom Visual Tip: How to Render an SVG or PNG

http://blog.jongallant.com/2016/12/powerbi-custom-visual-svg-png/

I've tested both approaches and confirm that both work fine with svg and png. Even added a svg vector sample I created in the blog comments. This was mainly for testing as drawing contains more than 15,000 lines of svg code and always appeared in a snap.
v-chuncz-msft
Community Support
Community Support

@catoriana,

 

What is the image used for? It seems a relative path issue. You may follow the debugging guide to debug your custom visual.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi 

I have the same problem ... How should we solve the relative path issue.

catoriana
Regular Visitor

How can I add static images to my custom visual project using the new Developer Tools?

I have added the images under the "assets" folder however when running my Custom Visual in Node.js I get the following "404 resource not found error".

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors