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 Apps / I need to resize image...
Power Apps
Unanswered

I need to resize images using a condition

(0) ShareShare
ReportReport
Posted on by

Hi!, I have a little problem.

Can an image be automatically resized in power apps only if it meets a condition?.
For example, in a nested gallery that has a maximum of 4 images 300x300 size, can it resize the images by 500x500 when it only has 2 or lees to show?

 

Categories:
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @JessicaMatsumot ,

    Do you want to set the width and height of image control in the gallery according to the number of records?

    Please try to set Width and Height:

    image 's Width: If(CountRows(datasource)>2,300,500)

    image 's Height:If(CountRows(datasource)>2,300,500)

     

    Best Regards

    Cheng Feng

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard