cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mr-dang
Community Champion
Community Champion

Bug: Image Original Dimensions

PowerApps 2.0.720

 

PowerApps isn't correctly showing the dimensions of images that calculate the original dimensions.

 

The image in question should be 38x52px. The dot you see on the canvas is the resulting image box when I set the CalculateOriginalDimensions property to true and the width and height accordingly.

 

Saving the app to the cloud and opening it also does not show the image correctly.

 

 

powerapps image dimensions.png

 

 

 

Microsoft Employee
@8bitclassroom
7 REPLIES 7
v-monli-msft
Community Support
Community Support

Hi @mr-dang,

 

Did you mean that when you change the Width and Height in PowerApps with Image1.OriginalWidth/Height, the dimensions of images doesn't match the actual dimensions? I just created a sample image in my Paint app, and added it to PowerApps. I looks like that it is working correctly. 

Capture.PNG

 

My appology if I have misunderstood anything. Or did you mean that your image is mot a dot but a rectangle picture and now it is shown as a white dot in app? If this is the situation, what is the data source of this image? How did you added it in the app? 

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


@v-monli-msft wrote:

My appology if I have misunderstood anything. Or did you mean that your image is mot a dot but a rectangle picture and now it is shown as a white dot in app? If this is the situation, what is the data source of this image? How did you added it in the app? 


Hi,

Thank you for responding.

My image is not a dot but a rectangular picture. It shows up with 0 width and 0 height. The dot that you see is just from the corners of the image box that are used for resizing it.

 

I added the picture, which is a .png file, in File > Media > Browse

Microsoft Employee
@8bitclassroom

Hi @mr-dang,

 

OK, I have reproduced your issue. But with different steps I got different result. So I will state both here.

 

The steps I took that reproduced your issue:

1. Click on File > Media > Browse, a "1.png" image is added unter Media.

2. Insert an image control, then immediately change under Advanced the CalculateOriginalDimensions property to true and the width and height accordingly.

3. Set the Image property to "1".

4. The dot shows.

Capture.PNG

 

The steps that will show the image correctly:

1. Click on File > Media > Browse, a "1.png" image is added unter Media.

2. Insert an image control, then immediately change the Image property to "1". And the image shows correctly. 

3. Then under Advanced the CalculateOriginalDimensions property to true and the width and height accordingly. The image is still there.

Capture.PNG

 

 

Other steps that will show the image correctly:

 1. Insert an Image control, then I click on the Image tab > Image dropdown > Add an image file.

0.PNG

 

2. Then in Advanced, changed the CalculateOriginalDimensions property to true and the width and height accordingly.

3. After this, my .png image shows correctly like this:

Capture.PNG

 

So would you please try with the 2nd and 3rd method to add your image and its dimensions?

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-monli-msft,

I tried both methods 2 and 3. They were able to show the image and its original size correctly while editing in studio. 

 

However, the images do not correctly show up when opening the app in cloud. This is true for both Chrome and Edge.

Microsoft Employee
@8bitclassroom

We are looking into this, please stay tuned.

 

mr-dang
Community Champion
Community Champion

@miglisic, any clues so far on why this is happening?

Microsoft Employee
@8bitclassroom

hi,

It does not work with pictures taking in the app. You know a way to display these?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (57,488)