Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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.
Hi @fgiurich - interesting challenge. Are you able to show an example of the visual will look like once rendered? Have you check the Python Library that are included in the Power BI Service to see if there is an alternative to the PIL and CV2 libraries?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |