<?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: Updating a portal item's thumbnail with Python, with locally or externally stored images in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1187806#M7529</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/426663"&gt;@LR2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You add the thumbnail directly in the update method. for URL below.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;test_item.update(thumbnail="https://i.imgur.com/qRyvWoR.png")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will also work for filepaths, just remember the r in front of the string if using backslashes.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;test_item.update(thumbnail=r"D:\Temp\img\globe_200x133.png")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 14:35:33 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2022-06-29T14:35:33Z</dc:date>
    <item>
      <title>Updating a portal item's thumbnail with Python, with locally or externally stored images</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1166041#M7318</link>
      <description>&lt;P&gt;I'm running a script from a Notebook in Pro to update a couple of items. The description, terms, etc work, but I'm stuck on the thumbnail. Is it possible to use locally stored images, or images hosted on another server?&lt;/P&gt;&lt;P&gt;This is the code I use for the other parameters, e. g. the description:&lt;/P&gt;&lt;PRE&gt;from arcgis import GIS&lt;BR /&gt;&lt;BR /&gt;gis = GIS("home")&lt;BR /&gt;desc = "this is a test"&lt;BR /&gt;test_item = gis.content.get('267cf15c2030453b94e6259822948fd6')&lt;BR /&gt;item_properties={"description":desc}&lt;BR /&gt;test_item.update(item_properties)&lt;/PRE&gt;&lt;P&gt;Parameter "thumbnailurl" won't work with either local nor hosted images.&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 11:33:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1166041#M7318</guid>
      <dc:creator>LR2</dc:creator>
      <dc:date>2022-04-20T11:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a portal item's thumbnail with Python, with locally or externally stored images</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1166055#M7319</link>
      <description>&lt;P&gt;So what does it look like when you are specifically attempting to update the thumbnail? In particular, how are you formatting the filepath? I have done this with local files, and have had no issues with it.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 12:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1166055#M7319</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-04-20T12:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a portal item's thumbnail with Python, with locally or externally stored images</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1166105#M7321</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;item_properties={"description":desc, "thumbnailurl":"D:\Temp\img\globe_200x133.png"}&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;item_properties={"description":desc, "thumbnailurl":"&lt;A href="https://i.imgur.com/qRyvWoR.png" target="_blank"&gt;https://i.imgur.com/qRyvWoR.png&lt;/A&gt;"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried parameter "thumbnail", and file:\\\ for the local image.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1166105#M7321</guid>
      <dc:creator>LR2</dc:creator>
      <dc:date>2022-04-20T13:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a portal item's thumbnail with Python, with locally or externally stored images</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1187806#M7529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/426663"&gt;@LR2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You add the thumbnail directly in the update method. for URL below.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;test_item.update(thumbnail="https://i.imgur.com/qRyvWoR.png")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will also work for filepaths, just remember the r in front of the string if using backslashes.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;test_item.update(thumbnail=r"D:\Temp\img\globe_200x133.png")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1187806#M7529</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2022-06-29T14:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a portal item's thumbnail with Python, with locally or externally stored images</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1235961#M8067</link>
      <description>&lt;P&gt;Easy enough.&amp;nbsp; Works like a charm. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 16:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-a-portal-item-s-thumbnail-with-python/m-p/1235961#M8067</guid>
      <dc:creator>Levon_H</dc:creator>
      <dc:date>2022-11-29T16:04:28Z</dc:date>
    </item>
  </channel>
</rss>

