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 / Powerapps Camera & Rot...
Power Apps
Unanswered

Powerapps Camera & Rotation Vs Adding an image

(0) ShareShare
ReportReport
Posted on by 174

Hi,

 

when adding a camera image to the add picture component of powerapps via a phone or tablet the image is rotated, however if i add a image file the image is rotated differently.. So i cant really use the rotation or flip options? can we variable or if statment this somehow?

 

Can this issue be solved? Its a slight annoyance as it makes the apps look tacky.

 

Thanks in advance

Categories:
I have the same question (0)
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @SomeoneAwesome 

     

    Is the rotation/flip direction fixed? Like if the camera is used, it's rotating to 180 degrees and if the image is use, its flipping. If your answer is yes, then you can set the rotation rule on the image property itself.

     

    Rotation samples

    http://powerappsguide.com/blog/post/media-how-to-rotate-images-on-screen

     

    As for identifying the source of the image, what you can do is add two add-media control, one is explicitly for the Camera and the other is for file uploading. That way you will know which adds the image.

     

    When button is click, you can set variables like?

    Camera Button > Set(IsCamera,true);

    FileUpload Button > Set(IsCamera,false);

     

    Then on the image be like:

    Image Property > If(IsCamera,Camera.Media, FileUpload.Media)

    Rotation Property > If(IsCamera, ImageRotation.180, None)

     

     

     

     

     

  • M1rrorEdge Profile Picture
    3 on at

    Great!  So, using these options http://powerappsguide.com/blog/post/media-how-to-rotate-images-on-screen, I can now rotate the images in a gallery, but it rotates all of them.  I have chosen the specific datacard and applied an Icon to each Image.  I am seeking to rotate only the selected image.  

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard