<?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 Blurry svg client-side rendered icons in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1165103#M77035</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;First time using ArcGIS, having used GM for the past 10 years, and have run into an issue.&lt;/P&gt;&lt;P&gt;I have 50+ detailed svgs that when rendered on GM are crisp and clean, but when same are rendered on the canvas (ArcGIS JS client-sided) they are blurry. Even a plain circle is being distorted with a 1 pixel right/bottom crop.&lt;/P&gt;&lt;P&gt;I note that since version 4.11 (&lt;A href="https://developers.arcgis.com/javascript/latest/breaking-changes/" target="_blank" rel="noopener"&gt;here&lt;/A&gt;), a "soft, anti-aliased edges" has been added, which I am surmising is causing the issue, and if that is the case... how do you turn it off?!&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 08:33:41 GMT</pubDate>
    <dc:creator>sarahjones4</dc:creator>
    <dc:date>2022-04-18T08:33:41Z</dc:date>
    <item>
      <title>Blurry svg client-side rendered icons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1165103#M77035</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;First time using ArcGIS, having used GM for the past 10 years, and have run into an issue.&lt;/P&gt;&lt;P&gt;I have 50+ detailed svgs that when rendered on GM are crisp and clean, but when same are rendered on the canvas (ArcGIS JS client-sided) they are blurry. Even a plain circle is being distorted with a 1 pixel right/bottom crop.&lt;/P&gt;&lt;P&gt;I note that since version 4.11 (&lt;A href="https://developers.arcgis.com/javascript/latest/breaking-changes/" target="_blank" rel="noopener"&gt;here&lt;/A&gt;), a "soft, anti-aliased edges" has been added, which I am surmising is causing the issue, and if that is the case... how do you turn it off?!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 08:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1165103#M77035</guid>
      <dc:creator>sarahjones4</dc:creator>
      <dc:date>2022-04-18T08:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry svg client-side rendered icons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1165154#M77036</link>
      <description>&lt;P&gt;Hi - what version of the ArcGIS API for JavaScript are you using? Could you share a repro case with me?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 15:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1165154#M77036</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2022-04-18T15:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry svg client-side rendered icons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1165507#M77042</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6601"&gt;@AnN&lt;/a&gt;&amp;nbsp;, i'm using the latest JS. Whilst i cant provide a repo, I can show an image to explain.&lt;BR /&gt;The image on left is an SVG rendered normally, whilst the right is rendered as a graphic on the canvas.&lt;/P&gt;&lt;P&gt;Note the height is 2px smaller, and the paths/lines are fuzzy (aka blurry) and not crisp.. which i'm attributing to the 'anti-aliasing' being applied?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sarahjones4_0-1650325996812.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39273iEBA6DCE86C951757/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sarahjones4_0-1650325996812.png" alt="sarahjones4_0-1650325996812.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This svg is composed of 4 lines: 2 horizontal, 2 vertical, forming a "box/square", but is rendered like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sarahjones4_1-1650326401052.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39274i1514C6300A19065F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sarahjones4_1-1650326401052.png" alt="sarahjones4_1-1650326401052.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Obviously the browser needs to sub-sample when path/lines/rect etc are using decimals. Canvas element rendering can be controlled through&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;image-rendering&lt;/SPAN&gt;: pixelated; &lt;SPAN class=""&gt;image-rendering&lt;/SPAN&gt;: crisp-edges;&lt;/PRE&gt;&lt;P&gt;so how does one do same for ArcGIS JS&amp;nbsp;'picture-marker' graphic objects?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 00:11:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1165507#M77042</guid>
      <dc:creator>sarahjones4</dc:creator>
      <dc:date>2022-04-19T00:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry svg client-side rendered icons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1301109#M81452</link>
      <description>&lt;P&gt;Was there a solution to this problem? I'm on the latest javascript SDKs and my svgs are render blurry. The height and width match what is set in the SVG itself, but it's blurry.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-06-20 at 10.47.15 AM.png" style="width: 120px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73706iF9381967CF93CEA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-06-20 at 10.47.15 AM.png" alt="Screenshot 2023-06-20 at 10.47.15 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;&amp;lt;svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"&amp;gt;
&amp;lt;path d="M0.707639 6.50388C0.531958 6.81132 0.531958 7.18874 0.70764 7.49618L3.42192 12.2461C3.59996 12.5576 3.9313 12.7499 4.29016 12.7499H9.70984C10.0687 12.7499 10.4 12.5576 10.5781 12.2461L13.2924 7.49618C13.468 7.18874 13.468 6.81132 13.2924 6.50388L10.5781 1.75398C10.4 1.4424 10.0687 1.25012 9.70984 1.25012H4.29016C3.9313 1.25012 3.59996 1.44241 3.42192 1.75398L0.707639 6.50388Z" fill="#E52A2D" stroke="white"/&amp;gt;
&amp;lt;/svg&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Jun 2023 15:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1301109#M81452</guid>
      <dc:creator>AndrewTaylor0942</dc:creator>
      <dc:date>2023-06-20T15:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry svg client-side rendered icons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1315360#M81859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/680541"&gt;@AndrewTaylor0942&lt;/a&gt;&amp;nbsp;- can you share a codepen or something reproducing the issue? I tested out your SVG using a SimpleMarkerSymbol and do not notice any blurriness.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-08-03 at 4.37.07 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77270i607589EE3DDABB90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-08-03 at 4.37.07 PM.png" alt="Screenshot 2023-08-03 at 4.37.07 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's an example:&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/poQYvwJ?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/annefitz/pen/poQYvwJ?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 23:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1315360#M81859</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-08-03T23:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry svg client-side rendered icons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1319683#M82011</link>
      <description>&lt;P&gt;Unfortunately I can't save code pens at work, but I'm pulling in the SVG as a file, not a path for a simple marker. We have some complex svgs we'd like to use and can't just paste in one path. The blur is subtle, but noticable. In the attached picture the green is made using a simple marker, the red is with a file path to an actual svg image.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;            const markerSymbol = {
                type: 'simple-marker',
                path: 'M11.2022 0.909049L11.0265 0.733313H10.7779H5.22238H4.97386L4.79812 0.909049L0.909232 4.79794L0.733496 4.97367V5.2222V10.7778V11.0263L0.909232 11.202L4.79812 15.0909L4.97386 15.2666H5.22238H10.7779H11.0265L11.2022 15.0909L15.0911 11.202L15.2668 11.0263V10.7778V5.2222V4.97367L15.0911 4.79794L11.2022 0.909049Z',
                color: 'red',
                size: 14,
                outline: {
                    type: 'simple-line',
                    color: 'white',
                    width: 1.2
                }
            };

            const svgStopSign = {
                type: 'picture-marker',
                url: '/path/to/file.svg,
                height: 14,
                width: 14
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"&amp;gt;
    &amp;lt;path d="M22.2625 1.95958L21.9696 1.66669H21.5554H10.4443H10.0301L9.73717 1.95958L1.9594 9.73736L1.6665 10.0303V10.4445V21.5556V21.9698L1.9594 22.2627L9.73717 30.0405L10.0301 30.3334H10.4443H21.5554H21.9696L22.2625 30.0405L30.0403 22.2627L30.3332 21.9698V21.5556V10.4445V10.0303L30.0403 9.73736L22.2625 1.95958Z" fill="#E52A2D" stroke="white" stroke-width="2"/&amp;gt;
&amp;lt;/svg&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 15:56:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1319683#M82011</guid>
      <dc:creator>AndrewTaylor0942</dc:creator>
      <dc:date>2023-08-17T15:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry svg client-side rendered icons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1320807#M82043</link>
      <description>&lt;P&gt;Thanks for the additional info&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/680541"&gt;@AndrewTaylor0942&lt;/a&gt;&amp;nbsp;! I can see there is some blurriness -- we will take a look!&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime, you can try converting your complex SVGs to CIM symbols using the &lt;A href="https://esri.github.io/cim-symbol-builder-js/" target="_self"&gt;CIM Symbol Builder&lt;/A&gt;. Here's a blog that walks you through how to do this:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/upload-symbols-from-svg-in-the-updated-cim-symbol-builder/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/upload-symbols-from-svg-in-the-updated-cim-symbol-builder/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let me know if that works for you or if you have any questions! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 17:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1320807#M82043</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-08-21T17:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry svg client-side rendered icons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1324602#M82134</link>
      <description>&lt;P&gt;We've installed a fix for the blurriness that will be released at version 4.28. You can test it out on our development version of the API,&amp;nbsp;&lt;A href="https://js.arcgis.com/next" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/next&lt;/A&gt;. Please let us know if you are still running into issues!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 00:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/blurry-svg-client-side-rendered-icons/m-p/1324602#M82134</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-09-01T00:32:32Z</dc:date>
    </item>
  </channel>
</rss>

