<?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: Can't change image in my layout in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1637213#M74550</link>
    <description>&lt;P&gt;Updated ArcGIS Pro to 3.5 and my problem is gone!&lt;/P&gt;&lt;P&gt;The logo is updated.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jul 2025 08:29:07 GMT</pubDate>
    <dc:creator>magdatopa_ratp</dc:creator>
    <dc:date>2025-07-29T08:29:07Z</dc:date>
    <item>
      <title>Can't change image in my layout</title>
      <link>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636324#M74534</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I've written a stand-alone arcpy script to modifiy a layout in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;It works great except for the PICTURE_ELEMENT and I don't find what I am doing wrong.&lt;/P&gt;&lt;P&gt;My purpose is to change the logo in my layout. In my script, I change the sourceImage and then I save a copy of my aprx.&lt;/P&gt;&lt;P&gt;When I open the aprx file, the logo has not change but if I check In the PICTURE_ELEMENT properties the image source has been correctly modified and if I press enter the the logo changes.&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 12:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636324#M74534</guid>
      <dc:creator>magdatopa_ratp</dc:creator>
      <dc:date>2025-07-25T12:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change image in my layout</title>
      <link>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636325#M74535</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/656752"&gt;@magdatopa_ratp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could it be that the project isn't being fully saved or maybe it needs reloaded, arcpy has a feature to force a save on the project which would end up refreshing the logo.&lt;/P&gt;&lt;P&gt;Also, would it be possible to link a bit of the code that you're having issue with?&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 12:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636325#M74535</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-07-25T12:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change image in my layout</title>
      <link>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636327#M74536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for trying to help me. As requested, here are some lines of my script :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#UPDATING LOGO&lt;BR /&gt;logo_file= INPUT_PATH + "newlogo.png"&lt;BR /&gt;logo="LOGO_COM"&lt;BR /&gt;lyt_logo=lyt.listElements('PICTURE_ELEMENT',logo)[0]&lt;BR /&gt;lyt_logo.sourceImage = logo_file&lt;/P&gt;&lt;P&gt;#saving a copy of my project&lt;/P&gt;&lt;P&gt;aprx.saveACopy(OUTPUT_PATH)&lt;/P&gt;&lt;P&gt;I also make changes in various TEXT_ELEMENTs of my layout and that works great. The only issue I have is the logo that doesn't refresh...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 12:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636327#M74536</guid>
      <dc:creator>magdatopa_ratp</dc:creator>
      <dc:date>2025-07-25T12:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change image in my layout</title>
      <link>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636329#M74538</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/656752"&gt;@magdatopa_ratp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe try and make a change to the logo and revert it to simulate the interaction?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#UPDATING LOGO
logo_file= INPUT_PATH + "newlogo.png"
logo="LOGO_COM"
lyt_logo=lyt.listElements('PICTURE_ELEMENT',logo)[0]
lyt_logo.sourceImage = logo_file

original_x = lyt_logo.elementPositionX
lyt_logo.elementPositionX = original_x + 0.001  # Small nudge
lyt_logo.elementPositionX = original_x  # Revert back

#saving a copy of my project

aprx.saveACopy(OUTPUT_PATH)&lt;/LI-CODE&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 12:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636329#M74538</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-07-25T12:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change image in my layout</title>
      <link>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636370#M74542</link>
      <description>&lt;P&gt;I'm going to try it out. I'll let you know...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 14:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636370#M74542</guid>
      <dc:creator>magdatopa_ratp</dc:creator>
      <dc:date>2025-07-25T14:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change image in my layout</title>
      <link>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636385#M74543</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;&amp;nbsp;unfortunately, it didn't change anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image source is updated but the logo does not refresh.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for trying, the idea was great.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 14:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636385#M74543</guid>
      <dc:creator>magdatopa_ratp</dc:creator>
      <dc:date>2025-07-25T14:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change image in my layout</title>
      <link>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636437#M74545</link>
      <description>&lt;P&gt;Found this topic :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/layout-picture-element-method-setsourcepath-doesn/td-p/1217000/page/2" target="_blank"&gt;Layout Picture Element Method SetSourcePath Doesn'... - Page 2 - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Same problem, supposed to be fixed in a 3.0 patch.&lt;/P&gt;&lt;P&gt;I am currently using ArcGIS Pro 3.0. Maybe my problem would be fixed if I upgrade my version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 15:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1636437#M74545</guid>
      <dc:creator>magdatopa_ratp</dc:creator>
      <dc:date>2025-07-25T15:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't change image in my layout</title>
      <link>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1637213#M74550</link>
      <description>&lt;P&gt;Updated ArcGIS Pro to 3.5 and my problem is gone!&lt;/P&gt;&lt;P&gt;The logo is updated.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 08:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-t-change-image-in-my-layout/m-p/1637213#M74550</guid>
      <dc:creator>magdatopa_ratp</dc:creator>
      <dc:date>2025-07-29T08:29:07Z</dc:date>
    </item>
  </channel>
</rss>

