Skip to main content

Notifications

Community site session details

Community site session details

Session Id : zF2LzONQYBK7teTiCyo9FU
Power Apps - Building Power Apps
Unanswered

Rotate an image's data 90 degrees. When a camera is facing ( and parallel with) the ground

Like (0) ShareShare
ReportReport
Posted on 2 Jan 2021 19:17:09 by 7

I am using PowerApps to have employees take photos of incoming product. 

We take all photos with our phones in EXIF-Horizontal orientation. Everything works great except when the mobile devices are taking photos in a horizontal orientation and are pointed straight down (phone is parallel to the ground). Most phones cannot determine the EXIF-orientation in this position and revert to the default vertical orientation.

The image capture for these photos are rotated -90 degrees. Screenshot below...

So in summary, the mobile device while pointing straight down loses it's EXIF-orientation so when I click the camera control, it captures the default EXIF-orientation of the device (vertical) and thus turning the image.

 

After capture, the upload button is clicked and the images is patched to a SQL server varbinary field. We then have to open the file on a desktop, rotate it in image viewer, then resave it to SQL.

 

Does anyone have any suggestions? I tried to use the image's image rotation property but that appears to only rotate in on screen and not change the image data. Thanks!

 

Image Rotation.png

  • WarrenBelz Profile Picture
    146,881 Most Valuable Professional on 06 Jan 2021 at 01:38:39
    Re: Rotate an image's data 90 degrees. When a camera is facing ( and parallel with) the ground

    Hi @Andrew311 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    146,881 Most Valuable Professional on 02 Jan 2021 at 21:39:10
    Re: Rotate an image's data 90 degrees. When a camera is facing ( and parallel with) the ground

    Hi @Andrew311 ,

    The orientation of the picture itself when taken by the camera is in the control of the device, not Power Apps. The image will present (initially) as taken with the camera image top at the top of the image control. You can rotate the image (as below) as you have noted, but the underlying image cannot be modified in Power Apps to save in a different orientation.

    PhotoRotate.gif

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 42 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 36

Overall leaderboard
Loading started
Loading complete