Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

How to control image size in table

I am returning an image in a table and am having difficulty in controlling the size. The two images below are the same height but the table renders the left image smaller.  Left is 16 x 48, right is 16 x 16.

How can i get the left image to render full size without incresing the row height?

 

 

 

PNG of the left  image 

 

PNG of the right image  

2 Replies

  • dax's avatar
    dax
    Icon for Community Support rankCommunity Support

    Hi NotDave,

    As I know, powerbi can't modify the image size automatically, I think you could change this  by image tool(might need third-part image tool), then import in powerbi. In addition, you also could use image(seems only apply for simple shape) like below, which seems could modify size

    "data&colon;image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='100' height='100' viewBox='0 0 100 100'> <circle cx='50' cy='50' r='40'  stroke='purple' stroke-width='4' fill='purple' /> </svg>";

     You could refer to Conditional Formatting Using Icons In Power BI  for details.

    Best Regards,
    Zoe Zhi

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi, it appears that PowerBI is scaling the images. Please see screenhsot below where i have increased row height to 50. AS you can see the image now matches the height of the RAG column.