<?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 Re: The best way to place JFIF on the Map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-best-way-to-place-jfif-on-the-map/m-p/1266107#M80503</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;JPEG is a lossy compression. If you inspect it closely, you'll find pixel values like 0, 1, 2 etc &amp;nbsp;around the edge. Something probably cannot be removed with a simple use of nodata.&amp;nbsp;There's another aspect, because source is a lossy compression, there's a high chance of false positives when declaring a value as nodata.&lt;/P&gt;&lt;P&gt;You can investigate the pixel values by calling identify method on the layer as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.on(["pointer-move"], (event) =&amp;gt; {
  const point = view.toMap({ x: event.x, y: event.y });
  layer.identify(point).then((results) =&amp;gt; {
    if (results.value) {
      console.log(results.value); 
    }
  })
  .catch((error) =&amp;gt; {
    if (!promiseUtils.isAbortError(error)) {
      throw error;
    }
  });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 17:54:31 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2023-03-09T17:54:31Z</dc:date>
    <item>
      <title>The best way to place JFIF on the Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-best-way-to-place-jfif-on-the-map/m-p/1265909#M80495</link>
      <description>&lt;P&gt;I have a JFIF file and its corners coords.&lt;BR /&gt;&lt;BR /&gt;Right now I have found 2 to ways to place it on the map.&lt;BR /&gt;1. Add it as a PictureMarkerSymbol.&lt;BR /&gt;The problem in this case is that I get a black background with the image&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 631px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64793iD1E47A47E4528B63/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;2. I can convert it to COgeoTIFF using GDAL.&lt;BR /&gt;&amp;nbsp; In this case it looks much better, but I still have 2 issues:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; a) The black background removed by adding NODATA values is not removed completely. Some of it is still visible.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; b) There is a lot of conversion that must to be done.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 693px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64796iFFE97571D51A7381/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Is there a good way to place JFIF on the Map, without tons of conversions and black background?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 12:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-best-way-to-place-jfif-on-the-map/m-p/1265909#M80495</guid>
      <dc:creator>KHTRE</dc:creator>
      <dc:date>2023-03-09T12:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: The best way to place JFIF on the Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-best-way-to-place-jfif-on-the-map/m-p/1266107#M80503</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;JPEG is a lossy compression. If you inspect it closely, you'll find pixel values like 0, 1, 2 etc &amp;nbsp;around the edge. Something probably cannot be removed with a simple use of nodata.&amp;nbsp;There's another aspect, because source is a lossy compression, there's a high chance of false positives when declaring a value as nodata.&lt;/P&gt;&lt;P&gt;You can investigate the pixel values by calling identify method on the layer as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.on(["pointer-move"], (event) =&amp;gt; {
  const point = view.toMap({ x: event.x, y: event.y });
  layer.identify(point).then((results) =&amp;gt; {
    if (results.value) {
      console.log(results.value); 
    }
  })
  .catch((error) =&amp;gt; {
    if (!promiseUtils.isAbortError(error)) {
      throw error;
    }
  });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 17:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-best-way-to-place-jfif-on-the-map/m-p/1266107#M80503</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-03-09T17:54:31Z</dc:date>
    </item>
  </channel>
</rss>

