<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use SVG image in JSON template file in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-SVG-image-in-JSON-template-file/m-p/3479530#M44954</link>
    <description>&lt;P&gt;I am trying to use an SVG image as the background image for my PBI report. I would like to include the image in the JSON theme file so when I create a new page in the report, it's automatically added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did: I first converted the SVG image to JSON, which produced the below code. When I tried uploading the JSON file to Power BI, I got an error message. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SVG image converted to JSON (using Aspose):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;That code inserted into JSON code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message I receive from Power BI after importing the JSON file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 18:54:40 GMT</pubDate>
    <dc:creator>lava_</dc:creator>
    <dc:date>2023-10-16T18:54:40Z</dc:date>
    <item>
      <title>How to use SVG image in JSON template file</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-SVG-image-in-JSON-template-file/m-p/3479530#M44954</link>
      <description>&lt;P&gt;I am trying to use an SVG image as the background image for my PBI report. I would like to include the image in the JSON theme file so when I create a new page in the report, it's automatically added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did: I first converted the SVG image to JSON, which produced the below code. When I tried uploading the JSON file to Power BI, I got an error message. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SVG image converted to JSON (using Aspose):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;That code inserted into JSON code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message I receive from Power BI after importing the JSON file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 18:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-SVG-image-in-JSON-template-file/m-p/3479530#M44954</guid>
      <dc:creator>lava_</dc:creator>
      <dc:date>2023-10-16T18:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SVG image in JSON template file</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-SVG-image-in-JSON-template-file/m-p/3481524#M44970</link>
      <description>&lt;P&gt;I figured this out. I was making the mistake of converting the SVG image to JSON instead of base64. I didn't use an SVG URL, just an SVG image and didn't run into any issues when I imported the theme.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Steps I took:&lt;/P&gt;&lt;P&gt;- Convert the SVG image to base64 (Data URI)&lt;/P&gt;&lt;P&gt;- insert that code into the JSON code&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 15:58:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-SVG-image-in-JSON-template-file/m-p/3481524#M44970</guid>
      <dc:creator>lava_</dc:creator>
      <dc:date>2023-10-17T15:58:36Z</dc:date>
    </item>
  </channel>
</rss>

