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.