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.
file:///c:/Folder/test.jpg'<CODE class="">new_md.thumbnailUri = '
Metadata—Metadata module | Documentation
<SPAN class="">import</SPAN> arcpy<SPAN class="">from</SPAN> arcpy <SPAN class="">import</SPAN> metadata <SPAN class="">as</SPAN> md <SPAN class=""># Create a new Metadata object and add some content to it</SPAN>new_md = md.Metadata() new_md.title = <SPAN class="">'My Title'</SPAN>new_md.tags = <SPAN class="">'Tag1, Tag2'</SPAN>new_md.summary = <SPAN class="">'My Summary'</SPAN>new_md.description = <SPAN class="">'My Description'</SPAN>new_md.credits = <SPAN class="">'My Credits'</SPAN>new_md.accessConstraints = <SPAN class="">'My Access Constraints'</SPAN>
<SPAN class=""># Assign the Metadata object's content to a target item</SPAN>streets_path = <SPAN class="">r'C:\Data\LocalArea.gdb\Streets'</SPAN>tgt_item_md = md.Metadata(streets_path)<SPAN class="">if</SPAN> <SPAN class="">not</SPAN> tgt_item_md.isReadOnly: tgt_item_md.copy(new_md) tgt_item_md.save()
<SPAN class=""> </SPAN>