<image> tag within svg not rendering.



  • I have a svg file with <image width="60" height="60" xlink:href="assets/img/test.svg"> tag.However, other svg content renders fine but the image tag within svg is not rendering.We've mounted the test.svg locally in the jsreport folder structure.The root folder structure looks like this -ProjectName/assets/img/test.svg.
    Reference link-https://jsreport.net/learn/assets

    {
       "extensions": {
         "assets": {
           "publicAccessEnabled": true
         }
       }
    }
    


  • Try this

    <img width="60" height="60" src={{asset "img/test.svg"}} />
    

Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.