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 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
    15,404 Super User 2025 Season 2 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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard