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 Apps / Issue when converting ...
Power Apps
Unanswered

Issue when converting a generated HTML to JPG

(0) ShareShare
ReportReport
Posted on by 2

Hi Team,

 

In a Power Automate flow, I have added a HTML code to generate a html file and then convert that file to .JPG 

HTML code is generating .html file correctly as per the code written. But when converted to JPG file, the logo position is getting changed in JPG file,

Below is the HTML code for logo :

<img align=right src="', variables('Logo') ,'" width="300" height="90">

 

in html generated file  I am able to observe the logo to be in the right side.

 

But the logo is appearing left in the converted JPG file which should appear on right side

 

Can you please suggest what might have gone wrong and how to correct it

 

 

Thank you

Lavanya 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    When using the built-in HTML conversion its better to stick to CSS for formatting instead of embedded values.  Try using the following instead of your current code.

    <img style="text-align: right'" src="', variables('Logo') ,'" width="300" height="90">

     

     

  • Lavanya21 Profile Picture
    2 on at

    Hi,

     

    I have tried this code, but still i am observing the same issue.

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    I did some testing.  You can't use the align or text-align on the image itself.  But if you put the image in a Table you can use align=right on the table cell and it will align to the right.

     

     

     <table>
     <tr>
     <td width='50%'></td>
     <td width='49%' align=right><img src="@{variables('varLogo')}" ></img>
     </td>
     </tr>
    </table>

     

     

  • jaigopalsoni Profile Picture
    16 on at

    @Lavanya21 @Pstork1  I want to use some Birthday image file downloaded from some sites stored in sharepoint as background for my happy birthday message to my colleagues and want to overlay some customized text message for each and send the same as image file in email as greetings on their birthday. Birthday, name, customized message and starting position of message in image, name of image file  is stored in sharepoint list. Please share the flow you have in your use case.

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    Please post this as a new question.  You'll get more responses and others will be able to find the answer more easily later.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard