Forum Discussion

latearrival's avatar
latearrival
Advocate I
6 years ago
Solved

PNG image exported by ExportTo REST API is small/blurred

I'm using the 'Reports - Export To File' API (https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile) to produce a PNG of a report.

The resulting PNG is so small (378 x 548) and blurred that the report isn't useable.

Can anyone tell me how to get a larger/sharper image?

 

(EDIT - When using ExportTo to export to PDF, the PDF comes out perfectly - the right size and nice and sharp).

  • v-lid-msft's avatar
    v-lid-msft
    6 years ago

    Hi latearrival ,

     

    It can see either in desktop or service, check it in deskto: "View" - “Page View"

     


    Best regards,

9 Replies

  • v-lid-msft's avatar
    v-lid-msft
    Community Support

    Hi latearrival ,

     

    What is the size of page? It seems does not the common 16:9 or 4:3, does there any custom height and width applied? we test with  a 16:9 page and it return a 1280*740 PNG different, does this page is set as "Actual Size"?

     

     

    Update : We try to use the Actual Size and get similar result as yours, could you please try if it can export as desire when set "fit page"?

     


    Best regards,

    • latearrival's avatar
      latearrival
      Advocate I

      Hi v-lid-msft 

       

      In desktop, my page size is set to Custom: 746 width x 1056 height. This is an A4 ratio.

       

      I'm new to Power BI, where do I set "Fit to page", please? Is this a desktop or an app.powerbi.com setting?

      • v-lid-msft's avatar
        v-lid-msft
        Community Support

        Hi latearrival ,

         

        It can see either in desktop or service, check it in deskto: "View" - “Page View"

         


        Best regards,

      • latearrival's avatar
        latearrival
        Advocate I

        I'm sorry, but I don't think I can help. The report we're exporting to PNG is a single page report.