0

I'm trying to add an SVG file to a CloudPage in Marketing Cloud. Though the file type is enabled in our MC Account, SF support says we need to create an AMPscript in order to include these files.

I guess it shouldn't be a very complex script to develop but I have no clue where to begin...

  • 1
    SVGs are images, so have you uploaded them to Content Builder as an asset? Once you've done that, you should have an image URL that you can include in your code. No AMPscript required. – Adam Spriggs Jun 20 '18 at 11:33
0

I had the same requirement and according to my findings,

  • For SVGs URL is not providing in the Content Builder
  • AMPscript ContentImagebyKey and ContentImagebyID are working fine for other image types but not work for SVG images

I was able to add SVG images to cloud page with svg tag instead of using img tag with URL,

    <svg width="200px" height="100px">
     ...
    </svg>

Visit https://css-tricks.com/using-svg/

This is not the best option but this is the only way I found.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.