<?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 metadata thumbnailUri in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/metadata-thumbnailuri/m-p/52516#M4157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an example of how to update thumbnails using the metadata module? I've tried a number of file path formats including this one below for making a new metadata object. The script runs, but the thumbnail doesn't update. &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;CODE class=""&gt;new_md.thumbnailUri = '&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;file:///c:/Folder/test.jpg'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/metadata/metadata-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/metadata/metadata-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Metadata—Metadata module | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class=""&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class=""&gt;import&lt;/SPAN&gt; metadata &lt;SPAN class=""&gt;as&lt;/SPAN&gt; md &lt;SPAN class=""&gt;# Create a new Metadata object and add some content to it&lt;/SPAN&gt;new_md = md.Metadata() new_md.title = &lt;SPAN class=""&gt;'My Title'&lt;/SPAN&gt;new_md.tags = &lt;SPAN class=""&gt;'Tag1, Tag2'&lt;/SPAN&gt;new_md.summary = &lt;SPAN class=""&gt;'My Summary'&lt;/SPAN&gt;new_md.description = &lt;SPAN class=""&gt;'My Description'&lt;/SPAN&gt;new_md.credits = &lt;SPAN class=""&gt;'My Credits'&lt;/SPAN&gt;new_md.accessConstraints = &lt;SPAN class=""&gt;'My Access Constraints'&lt;/SPAN&gt;
&lt;SPAN class=""&gt;# Assign the Metadata object's content to a target item&lt;/SPAN&gt;streets_path = &lt;SPAN class=""&gt;r'C:\Data\LocalArea.gdb\Streets'&lt;/SPAN&gt;tgt_item_md = md.Metadata(streets_path)&lt;SPAN class=""&gt;if&lt;/SPAN&gt; &lt;SPAN class=""&gt;not&lt;/SPAN&gt; tgt_item_md.isReadOnly:     tgt_item_md.copy(new_md)     tgt_item_md.save()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 15:58:01 GMT</pubDate>
    <dc:creator>StellaSpring1</dc:creator>
    <dc:date>2021-12-12T15:58:01Z</dc:date>
    <item>
      <title>metadata thumbnailUri</title>
      <link>https://community.esri.com/t5/python-questions/metadata-thumbnailuri/m-p/52516#M4157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an example of how to update thumbnails using the metadata module? I've tried a number of file path formats including this one below for making a new metadata object. The script runs, but the thumbnail doesn't update. &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;CODE class=""&gt;new_md.thumbnailUri = '&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;file:///c:/Folder/test.jpg'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/metadata/metadata-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/metadata/metadata-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Metadata—Metadata module | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class=""&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class=""&gt;import&lt;/SPAN&gt; metadata &lt;SPAN class=""&gt;as&lt;/SPAN&gt; md &lt;SPAN class=""&gt;# Create a new Metadata object and add some content to it&lt;/SPAN&gt;new_md = md.Metadata() new_md.title = &lt;SPAN class=""&gt;'My Title'&lt;/SPAN&gt;new_md.tags = &lt;SPAN class=""&gt;'Tag1, Tag2'&lt;/SPAN&gt;new_md.summary = &lt;SPAN class=""&gt;'My Summary'&lt;/SPAN&gt;new_md.description = &lt;SPAN class=""&gt;'My Description'&lt;/SPAN&gt;new_md.credits = &lt;SPAN class=""&gt;'My Credits'&lt;/SPAN&gt;new_md.accessConstraints = &lt;SPAN class=""&gt;'My Access Constraints'&lt;/SPAN&gt;
&lt;SPAN class=""&gt;# Assign the Metadata object's content to a target item&lt;/SPAN&gt;streets_path = &lt;SPAN class=""&gt;r'C:\Data\LocalArea.gdb\Streets'&lt;/SPAN&gt;tgt_item_md = md.Metadata(streets_path)&lt;SPAN class=""&gt;if&lt;/SPAN&gt; &lt;SPAN class=""&gt;not&lt;/SPAN&gt; tgt_item_md.isReadOnly:     tgt_item_md.copy(new_md)     tgt_item_md.save()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 15:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/metadata-thumbnailuri/m-p/52516#M4157</guid>
      <dc:creator>StellaSpring1</dc:creator>
      <dc:date>2021-12-12T15:58:01Z</dc:date>
    </item>
  </channel>
</rss>

