<?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: Python script to export layout to JPG in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1115311#M47664</link>
    <description>&lt;P&gt;Thanks! That worked!!! Much appreciated!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 17:01:02 GMT</pubDate>
    <dc:creator>LindaSlattery</dc:creator>
    <dc:date>2021-11-09T17:01:02Z</dc:date>
    <item>
      <title>Python script to export layout to JPG</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114506#M47560</link>
      <description>&lt;P&gt;&lt;EM&gt;I am trying to find a script that exports my layout in ArcPro to a JPG once a week. Most of what I have found when searching has been for map series. Can anyone assist? Thanks!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114506#M47560</guid>
      <dc:creator>LindaSlattery</dc:creator>
      <dc:date>2021-11-05T15:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to export layout to JPG</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114522#M47561</link>
      <description>&lt;P&gt;This &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/layout-class.htm#C_GUID-6DFB661B-D50A-4E3A-AE75-6884442AD100" target="_self"&gt;help page&lt;/A&gt; seems to imply you can just export a single layout to just about whatever image format you like. The arcpy.mp module does takes a little getting used to.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:50:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114522#M47561</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-11-05T15:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to export layout to JPG</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114523#M47562</link>
      <description>&lt;P&gt;Hi Linda&lt;/P&gt;&lt;P&gt;would this works for you?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

docPath = r"D:\FOLDER"
docName = r"AGSPRODOC.aprx"
p = arcpy.mp.ArcGISProject(docPath+"\\"+docName)
# ge a list of all layouts in your map dox
lLayout = p.listLayouts()
for l in lLayout:
    print(l.name)
    #You could add an if statement to print ONLY a specific layout
    l.exportToJPEG(docPath+"\\"+l.name+"jpg")

print("Process Completed")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114523#M47562</guid>
      <dc:creator>DominicRobergeIADOT</dc:creator>
      <dc:date>2021-11-05T15:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to export layout to JPG</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114891#M47618</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/366436"&gt;@DominicRobergeIADOT&lt;/a&gt;&amp;nbsp;, this works great! Thank you! However, one thing it is not doing is including my dynamic text that I have in the layout. I have a date/time exported and a record count. Any idea how to get the print command to include those?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 14:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114891#M47618</guid>
      <dc:creator>LindaSlattery</dc:creator>
      <dc:date>2021-11-08T14:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to export layout to JPG</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114898#M47620</link>
      <description>&lt;P&gt;hummm I am not sure. it's working for me (see image below). Can you try to add a new dynamic txt for the count just for fun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DominicRoberge2_0-1636383498020.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26992iB62B2C97305C2686/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DominicRoberge2_0-1636383498020.png" alt="DominicRoberge2_0-1636383498020.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 15:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1114898#M47620</guid>
      <dc:creator>DominicRobergeIADOT</dc:creator>
      <dc:date>2021-11-08T15:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Python script to export layout to JPG</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1115311#M47664</link>
      <description>&lt;P&gt;Thanks! That worked!!! Much appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 17:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-script-to-export-layout-to-jpg/m-p/1115311#M47664</guid>
      <dc:creator>LindaSlattery</dc:creator>
      <dc:date>2021-11-09T17:01:02Z</dc:date>
    </item>
  </channel>
</rss>

