Hi,
I'm trying to embed images into an e-mail and, with the current flow, if the images are jpgeg 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)
- Init variable -> string = concat('<img src=''',dataUri(outputs('compose-file-content')?['body']),'''/>')
- Insert the variable in the mail
I've checked the outputs of the mail which comes blank, going as far as copy-pasting the html code of the mail saving that as HTML, and it works and shows the image.
And 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 and the data uri of each of the animated gif is ~600Kb.
I can't for the life of me understand what's happening or have it working.