When a report is saved in PBIP format, all images embedded in that report are saved as PNG files in the ReportName.Report\StaticResources\RegisteredResources folder (adjacent to the .PBIP file).
When the report is saved locally by Power BI Desktop, these PNG files are valid image files, and they can be opened by any image viewer app. But when the report is exported from the Power BI service by Export-FabricItems, those same PNG files are corrupted, so they cannot be opened in any image viewer app.
As a result, if the user opens a ReportName.Report\definition.pbir file that was exported with Export-FabricItems in Power BI Desktop, none of the embedded images will display properly, and if the user publishes that report from Power BI Desktop to the Power BI service, the embedded images will not display properly there either.
The PNG files that were saved locally with Power BI Desktop are actually smaller than the ones that were exported with Export-FabricItems, so I think it's pretty likely that some extra bytes of data are being added to the files during the export process, and that is causing them to become corrupted.
@RuiRomano, please let me know if I may be of any assistance with sorting this out.
When a report is saved in PBIP format, all images embedded in that report are saved as PNG files in the
ReportName.Report\StaticResources\RegisteredResources
folder (adjacent to the .PBIP file).When the report is saved locally by Power BI Desktop, these PNG files are valid image files, and they can be opened by any image viewer app. But when the report is exported from the Power BI service by
Export-FabricItems
, those same PNG files are corrupted, so they cannot be opened in any image viewer app.As a result, if the user opens a
ReportName.Report\definition.pbir
file that was exported withExport-FabricItems
in Power BI Desktop, none of the embedded images will display properly, and if the user publishes that report from Power BI Desktop to the Power BI service, the embedded images will not display properly there either.The PNG files that were saved locally with Power BI Desktop are actually smaller than the ones that were exported with
Export-FabricItems
, so I think it's pretty likely that some extra bytes of data are being added to the files during the export process, and that is causing them to become corrupted.@RuiRomano, please let me know if I may be of any assistance with sorting this out.