Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Dashboard Background Image Size

I'm trying to upload a decent background image to a dashboard - it seems there are no options to resize the image and I can't find any documentation on prefered sizing. Can anyone help? 

 

Thanks,

  • Hi Anonymous ,

    You are right. There is no option to resize images directly. You need to define the properties with JSON code and upload the theme file into dashboard.

    {
    "imageHeight": {
              "type": [
                "numeric"
              ],
              "displayName": [
                "Image height"
              ],
              "description": [
                "The height of images in pixels"
              ]
            },
    "imageScaling": {
            "imageScalingType": [
              {
                "value": "Normal",
                "displayName": "Normal"
              },
              {
                "value": "Fit",
                "displayName": "Fit"
              },
              {
                "value": "Fill",
                "displayName": "Fill"
              }
            ]
        }
    }

    Reference:

    https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#report-theme-json-file-format

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      I'm reffering to the Dashboard, not the report itself. 

      • v-xuding-msft's avatar
        v-xuding-msft
        Icon for Community Support rankCommunity Support

        Hi Anonymous ,

        You are right. There is no option to resize images directly. You need to define the properties with JSON code and upload the theme file into dashboard.

        {
        "imageHeight": {
                  "type": [
                    "numeric"
                  ],
                  "displayName": [
                    "Image height"
                  ],
                  "description": [
                    "The height of images in pixels"
                  ]
                },
        "imageScaling": {
                "imageScalingType": [
                  {
                    "value": "Normal",
                    "displayName": "Normal"
                  },
                  {
                    "value": "Fit",
                    "displayName": "Fit"
                  },
                  {
                    "value": "Fill",
                    "displayName": "Fill"
                  }
                ]
            }
        }

        Reference:

        https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#report-theme-json-file-format

         

        Best Regards,

        Xue Ding

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • v-xuding-msft's avatar
    v-xuding-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

    Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.