Hello Folks,
Using the Power Apps Image control, is there any possibility to resize or crop the image in the app itself?
Prior posting to this forum, I did some research however could not find any relevant information - what could be the alternatives?
Thanks and regards.
Hi @fmourtaza ,
To resize a picture, we need to edit its height and width. This can be done using the slider.
However, Currently there is not such an function to crop the picture in PowerApps. I have found an idea in Power Apps Ideas, you can vote for it.
https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Ability-to-Crop-an-Image-Manually/idi-p/269622
Best regards,
Allen
@v-albai-msft This is really cool, however the aim is not achieved as the user wants either to crop or resize their picture. Using the slider, its a zoom in - zoom out functionality.
Hi @fmourtaza ,
We can use a slider to resize the image control. You can see the detailed steps below.
1. Add a slider control under the image. Then set Slider:
Default(): 100,
Min: 0,
Max: 200,
2. In your Image set the Height and Width as a function of the Slider:
For example:
Height(): 2* Slider1.Value
Width(): 2* Slider1.Value
Run the app and test if the Slider changes the image size accordingly.
Best regards,
Allen
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional