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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add Picture Control ch...
Power Apps
Unanswered

Add Picture Control changes image orientation

(1) ShareShare
ReportReport
Posted on by 16

Hello, 

 

I have an Add Picture control in my app to let users upload images from camera or phone gallery. When the user uploads a picture, the image is flipped from horizontal to vertical (meaning the orientation changes). How can I make it to stick to the original orientation?

 

Thanks,

Jorge

Categories:
I have the same question (0)
  • jluna Profile Picture
    16 on at

    One correction, I meant from it flips it from vertical to horizontal. The original picture is vertical but when uploaded, the control shows it horizontally. However when I upload the image to my dropbox (from the app), it uploads on the correct orientation. It seems to be a problem with the properties of the image control in the app. Please help

     

     

  • v-yamao-msft Profile Picture
    on at

    Hi jluna,

     

    To test this issue, I create an app to upload image using the Add picture control then show the images in a gallery.
    https://powerapps.microsoft.com/en-us/tutorials/control-add-picture/

     

    On desktop studio, as long as the uploaded pictures are vertical, they will also be vertical when I show them in a gallery.


    While on phone app, when I upload pictures from my phone album, it seems that all the images will be changed from vertical to horizontal, though they are vertical in the album.

     

    Are you getting the issue when running your app on phone? I am looking forward to your reply.

     


    Best regards,
    Mabel Mao

  • jluna Profile Picture
    16 on at
    Hi Mabel,
    Thank you very much for your response.

    Yes, I am running it on app phone version and using the web-based Powerapp Studio. The issue happens When I test it both in my phone and in the computer.

    Pictures taken with my camara phone seem to always have that problem. Existing images (downloaded from internet) in vertical position seem to work fine.

    Let me know your thoughts

    Thanks,
    Jorge
  • AndyPennell Profile Picture
    on at

    I am going to take a guess that it depends on the camera app and OS and Browser combination, and its to do with the EXIF orientation flag. http://keyj.emphy.de/exif-orientation-rant/ 

     

  • v-yamao-msft Profile Picture
    on at

    Hi jluna,

     

    Actually, I got the same results with you.

     

    Pictures downloaded from Internet seems to be working fine on Phone, Windows and Web. While the pictures taken by phone camera will not work well on phone app and Web studio, they will be changed from vertical to horizontal.

     

    @AndyPennell Thanks for sharing with us the blog. Do we have any workaround to rotate the orientation of images on app? Or are we able to keep the images to its original orientation?

     

     

     

    Best regards,
    Mabel Mao

  • AndyPennell Profile Picture
    on at

    I cannot claim any expertise in this area. However my best guess is the camera is using the EXIF rotation property in a way that is incompatible with the way PA renders bitmaps.

     

    The OP has not specificed the device type, but maybe the anonymous camera app in question has an option to do rotation "fully" instead of using EXIF tags?

     

    I am not aware of any feature to rotate bitmaps in PowerApps. The blog mentions some PC tools that can remove the EXIF and do the rotation "fully", though it is an old post.

  • jluna Profile Picture
    16 on at

    Hi everyone,

     

    Thanks for your responses. I have one update (very lame workaround). It works if I first take the picture in my phone, edit it (with the phone app) and then go to my Powerapps app and upload it. 

     

    This kind of prooves the EXIF issue. Still hoping to find a solution within Powerapp

     

    Thanks,

    Jorge

  • AndyPennell Profile Picture
    on at

    I have confirmed that PowerApps has a problem displaying bitmaps that use the EXIF rotation tag. Studio shows them correctly, but webplayer and Android do not. I have alerted the relevant folks. Thank you for the report.

  • jluna Profile Picture
    16 on at

    Thanks Andy,

     

    Just to add, it doesn't work on IOS either, I have been testing it on my iphone.

     

    Chers,

    Jorge

  • cursors Profile Picture
    46 on at

    Four months later and this is still an issue.  Any update on when this might get fixed?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard