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 / Embedding animated gif...
Power Automate
Suggested Answer

Embedding animated gifs into mails

(2) ShareShare
ReportReport
Posted on by 16
Hi,
I'm trying to embed images into an e-mail and, with the current flow, if the images are jpeg or png it works well, but it fails to show any gif unless I hardcode the data URI on to a string variable.
 
What I'm currently doing:
- Get File Content (either Sharepoint or Onedrive)
- Compose -> dataUri(file-content)
- Initialize string variable -> concat('<img src=''',dataUri(outputs('compose-file-content')?['body']),'''/>') // (also tried initializing before and doing a set later)
- Insert the variable in the mail
 
If the image is a jpeg or png this works.
If the image is a gif the mail comes blank. I've checked the outputs of the mail, going as far as copy-pasting the html code of the mail and saving that as HTML, and it works and shows the image.
 
Funny thing is, if I hard-code the data URI of the animated gif (I used this page to extract it and then save the result into a string) and just insert that string variable, it works and shows the image.
But I cannot use this solution because Power Automate size limit is 4Mb, the data uri of each of the animated gif is ~600Kb-~900kb and I need to use three images.
 
I can't for the life of me understand what's happening or have it working.
Categories:
I have the same question (0)
  • trice602 Profile Picture
    16,164 Super User 2026 Season 1 on at
    Hi,
     
     
     
    --------------------------------
     
     



    If this was helpful, please like and/or mark as a solution to help others find this answer too!

    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     
     
  • JordiFuji Profile Picture
    16 on at
    Hi @trice602,
     
    What you describe is precisely what I said I do.
     
    Try that with an animated gif, it does not work; it works for jpg, jpeg and png but not animated gifs.
  • Suggested answer
    ankitj Profile Picture
    4 on at
    Hello,
     
    I used the following code for the concat query and it worked with the variable
     
    concat(' <img src = "',outputs('Compose'), '"alt = "" />')
     
    Thanks!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard