<?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: OSError: Cannot identify image file in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868050#M4532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've cloned the python environment and installed the frameworks using these steps&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/image-analyst/install-deep-learning-frameworks.htm"&gt;install-deep-learning-frameworks&lt;/A&gt;. Afterwards, I've used the command (&lt;SPAN style="background-color: #ffffff;"&gt;conda install -c esri arcgis fastai scikit-image pillow --no-pin&lt;/SPAN&gt;) to correct the versions, and it actually updated two packages including pillow, but still getting the same error. Any further idea please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp; Ahmed&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OSError" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/482495_OSError.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2020 09:56:52 GMT</pubDate>
    <dc:creator>DemoDemo</dc:creator>
    <dc:date>2020-02-18T09:56:52Z</dc:date>
    <item>
      <title>OSError: Cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868048#M4530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I'm trying to implement building footprint detection using Deep Learning as shown in this example&amp;nbsp;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fpython%2Fsample-notebooks%2Fextracting-building-footprints-from-drone-data%2F" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;Extracting Building Footprints From Drone Data | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;with my own data. But I'm getting the following error when I run the prepare_data() function.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/480677_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;The command I ran was&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/480678_pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;The error persists even after reinstalling pillow&amp;nbsp;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d; background-color: #ffffff; font-weight: 400; text-decoration: none;"&gt;6.2.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; font-weight: 400; text-decoration: none; font-size: 11.5pt; "&gt;Any ideas on how to resolve it? I'm using ArcGIS Pro 2.5.0.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; font-weight: 400; text-decoration: none; font-size: 11.5pt; "&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2020 20:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868048#M4530</guid>
      <dc:creator>Vishnu_maheshVivek_nanda</dc:creator>
      <dc:date>2020-02-07T20:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: Cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868049#M4531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue is caused by broken pillow install, try to use this command in your conda environment&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pip uninstall pillow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pip install pillow==6.2.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will fix your current environment&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next time you are creating environment you can use this command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conda install -c esri arcgis fastai scikit-image pillow --no-pin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make sure you have correct version of pillow and other deep learning dependecies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 04:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868049#M4531</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-13T04:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: Cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868050#M4532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've cloned the python environment and installed the frameworks using these steps&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/image-analyst/install-deep-learning-frameworks.htm"&gt;install-deep-learning-frameworks&lt;/A&gt;. Afterwards, I've used the command (&lt;SPAN style="background-color: #ffffff;"&gt;conda install -c esri arcgis fastai scikit-image pillow --no-pin&lt;/SPAN&gt;) to correct the versions, and it actually updated two packages including pillow, but still getting the same error. Any further idea please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp; Ahmed&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OSError" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/482495_OSError.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 09:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868050#M4532</guid>
      <dc:creator>DemoDemo</dc:creator>
      <dc:date>2020-02-18T09:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: Cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868051#M4533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting the same issue here...&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/482547_pastedImage_1.png" /&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/482548_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 18:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868051#M4533</guid>
      <dc:creator>JingyiHu</dc:creator>
      <dc:date>2020-02-18T18:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: Cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868052#M4534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I to am having the same error issue as the others, I tried uninstalling Pillow and reinstalling the updated version as well. I have tried it on a local as well as a network drive to see if there was an issue with permissions?? Any help would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 18:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868052#M4534</guid>
      <dc:creator>MarkSanford1</dc:creator>
      <dc:date>2020-02-19T18:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: OSError: Cannot identify image file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868053#M4535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Can you post a sample tile here and the metadata of the tile, it seems that the imagery you are using is multi spectral imagery. You need to convert multi spectral imagery to RGB format with datatype 8-bit unsigned, you can do it so by layer -&amp;gt; right click -&amp;gt; Export Raster and then check render and RGB options while exporting data.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Also we have added experimental support for multi spectral data, you can trigger that by adding imagery_type='ms'&amp;nbsp; kwarg to prepare_data() method. You can directly used you training data this way, you need to have gdal installed in order to use it. if you are using arcgis pro python environment it would be there by default.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Same answer as this thread&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/910826-re-oserror-cannot-identify-image-file?commentID=910826#comment-910826" title="https://community.esri.com/message/910826-re-oserror-cannot-identify-image-file?commentID=910826#comment-910826"&gt;https://community.esri.com/message/910826-re-oserror-cannot-identify-image-file?commentID=910826#comment-910826&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2020 14:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/oserror-cannot-identify-image-file/m-p/868053#M4535</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-22T14:12:50Z</dc:date>
    </item>
  </channel>
</rss>

