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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.