Forum Discussion

AlexOLYazaki202's avatar
AlexOLYazaki202
New Member
1 month ago
Solved

JPG Cropped

When I get JPG in POwer BI destktop and add in to a table, the image is cropped, I use Base64 for convert the URL. How can I fix this trouble???
  • oussamahaimoud's avatar
    1 month ago

    Hi,

     

    The cropping is caused by the "Image scaling" property, not by Base64 itself.

    • Select your table/matrix visual.
    • Go to Format your visual (paint roller icon) → Cell elements.
    • Find the image field you added → there's a property called "Image scaling" (in newer Power BI Desktop it may appear as Image fit).
    • It has two options:

    Fill (default) → stretches/crops the image to fill the cell completely, this is what's cutting off your images.

    Fit → keeps the full image visible within the cell, preserving aspect ratio (may leave empty space).

    • Switch it to Fit.

    Second thing to check is row height vs column width ratio:

    Even with "Fit," if your cell's width/height ratio is very different from your image's aspect ratio, the image will look squeezed or the visible area will be small. Adjust:

    Row height (Format → Grid or Cell elements → Row height)

    Column width (drag manually in the visual)

    so the cell ratio roughly matches your image ratio (exemple: 1:1 for square logos, 16:9 for landscape photos).