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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
fgiurich
Regular Visitor

Power BI Service: Adding images to visuals created with Python scripts

Power BI Desktop allows to create Python visuals that contain a background image (in formats such as .png, .jpg or coded in base64) and then a plot on top with loaded data. This can be done by using Python modules, such as PIL and cv2, or by using the file handling open-and-write scripts.

 

I have a report done on Power Bi Desktop and I would like to get it published in Power Bi service online. However, modules PIL and cv2 are not supported by Power Bi sevice, thus making it impossible to display the background images of my plots through the functions of those modules.

 

I also tried with the file handling code of Python, which lets the background image be displayed and then does run the script, but does not modify the background image - meaning that the visual is taken over by the reading and writing of the image, and not allowing to display any of the plots made on top.

 

Does anyone know how to overcome this issue? Otherwise, I would like to suggest the inclusion of either module PIL or cv2, or solving the issue with the file handling code of Python to be able to open up images and plotting over them with Python script in Power Bi Service.

1 REPLY 1
Anonymous
Not applicable

Hi @fgiurich ,

It's by design.

If you would like to suggest  feature improvements, you may  vote the idea and comment here  to improve this feature. It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,
Community Support Team _ Caitlyn

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors