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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Rotate Image Code HTML
Power Automate
Answered

Rotate Image Code HTML

(0) ShareShare
ReportReport
Posted on by 353

Hi Community,

 

I have an image input from PowerApps that generates a PDF file with the image. How can I make the image rotate 90 or 270° in the Power Automate module?.

 

<!DOCTYPE html>
<html>
<body>

<img src=['Image_1'] alt="Image" style="width:500px;height:600px;"></img>
</body>
</html>

 

Thank you so much¡.

 

Francisco

Categories:
  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    Hi @Francisco77 

     

    You cannot per se rotate it via some special thing in Power Automate.

     

    But... what you can do is

    1. Use a Compose to take the HTML

    2. Update the HTML to add a <head> and <style> that would rotate the image

    How to Rotate Image in HTML ? - GeeksforGeeks


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Francisco77 Profile Picture
    353 on at

    Hi @FLMike, thanks for youre help.

     

    I am generating an HTML using compose before generating the PDF,

    but I don't understand what part of the code I should change to rotate the image.

    My code is:

    <!DOCTYPE html> <html> <body> <img src=['Compose_Inputs'] alt="Image" style="width:536px;height:750px;"></img> </body> </html>

  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    hi @Francisco77 

    Did you really and truly go look at the sample? Because they are super clear.

     

    Please give it a try first, and then I will help. But this is new for me too. So try, then ask for help 🙂


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Francisco77 Profile Picture
    353 on at

    @FLMike 

     

    I try but I don't succeed. I don't have great knowledge of Power Automate or HTML code. I still appreciate your help, I will continue waiting for other help.

     

    Regards,

  • Verified answer
    Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    @Francisco77 

     

    Please try this in your compose. However a couple of things

    Since I am copy and pasting, its possible your 'Compose_Inputs' is messed up, so please re-add it

    Paste all of this in the Compose Input, then delete the words 'Compuse_Inputs' as that will not work anyway. And if you have another Compose for your URL, you need to put the Outputs of that.

     

    Or share you code

     

    Also, its only doing 45 degrees, if you want more, just change the Number.

    If you want it to be Dynamic, thats a different problem, but solveable.

     

    <!DOCTYPE html> <html> 
    <head>
     <style>
     .rotate_image {
     -webkit-transform: rotate(45deg);
     -moz-transform: rotate(45deg);
     -ms-transform: rotate(45deg);
     -o-transform: rotate(45deg);
     transform: rotate(45deg);
     }
     
     h1 {
     color: green;
     }
     </style>
    </head>
    <body> <img class='rotate_image' src=['Compose_Inputs'] alt="Image" style="width:536px;height:750px;"></img> </body> </html>

     

     

     
    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Francisco77 Profile Picture
    353 on at

    Really thank you very much for your help. It worked perfect for me.

  • Leena14 Profile Picture
    21 on at

    Hi , I was not getting these parameters in rotate an image . It was asking for connection name and api key . Please help ?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard