web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Image Cropping Issue i...
Power Pages
Unanswered

Image Cropping Issue in Power Pages Card Gallery – How to Maintain Full Image Without Cropping?

(2) ShareShare
ReportReport
Posted on by

Hi everyone,

I'm currently working with the Card Gallery control in Power Pages, and I'm experiencing an issue where images are always forced into a square format. It appears that Power Pages automatically scales images to fit but crops parts of them instead of maintaining their original aspect ratio.

Here’s what I’m trying to achieve:


  • If the image is landscape, I want the width to be 135px and the height to adjust automatically.

  • If the image is portrait, I want the height to be 135px and the width to adjust automatically.

  • The full image should be visible without any cropping.

However, Power Pages seems to be forcing a square size, cutting off parts of the image. I've tried overriding the CSS using object-fit: contain;, aspect-ratio: auto;, and modifying the width and height, but the issue persists. Also tried scale to fit in the styling options but same output. 

Are there any known limitations with how images are rendered in the Card Gallery control? Has anyone found a workaround to maintain the entire image without cropping, while ensuring it scales properly?

Thanks in advance for any insights!

Screenshot 2025-03-26 211708.png
Screenshot 2025-03-26 211633.png
Categories:
I have the same question (0)
  • CU17091722-0 Profile Picture
    21 on at
    Hello,
    You're absolutely right: it defaults to square thumbnails and applies CSS that forces the image into a 1:1 aspect ratio, often using object-fit: cover, which leads to cropping

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 33 Most Valuable Professional

Last 30 days Overall leaderboard