<?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: Data Driven Pages - to PNG using ArcPy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568355#M44519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a resolution parameter:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/exporttopng.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/exporttopng.htm"&gt;ExportToPNG—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2017 20:50:02 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2017-01-04T20:50:02Z</dc:date>
    <item>
      <title>Data Driven Pages - to PNG using ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568354#M44518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcPy to export data driven pages to PNGs. I need the export to have a higher resolution then the default one when you export your map using ArcPy.&lt;/P&gt;&lt;P&gt;This is the script that I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;BR /&gt; mxd.dataDrivenPages.currentPageID = pageNum&lt;BR /&gt; pageName = str(mxd.dataDrivenPages.pageRow.New_ID)&lt;BR /&gt; arcpy.mapping.ExportToPNG(mxd, r"C:\Users\" + pageName + ".png")&lt;BR /&gt;del mxd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the resolution to be 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where would I add this into the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 20:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568354#M44518</guid>
      <dc:creator>CamW</dc:creator>
      <dc:date>2017-01-04T20:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages - to PNG using ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568355#M44519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a resolution parameter:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/exporttopng.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/exporttopng.htm"&gt;ExportToPNG—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 20:50:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568355#M44519</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2017-01-04T20:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages - to PNG using ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568356#M44520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Now where does it fit into the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 21:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568356#M44520</guid>
      <dc:creator>CamW</dc:creator>
      <dc:date>2017-01-04T21:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages - to PNG using ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568357#M44521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On each help page related to arcpy (e.g. arcpy functions, classes, or geoprocessing tools) the Python syntax for the "thing" is near the bottom. In this case, it says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #4d4d4d; background-color: #fefefe; font-size: 0.75em; margin-bottom: 1.5em;"&gt;ExportToPNG (map_document, out_png, {data_frame}, {df_export_width}, {df_export_height}, &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;{resolution}&lt;/STRONG&gt;&lt;/SPAN&gt;, {world_file}, {color_mode}, {background_color}, {transparent_color}, {interlaced})&lt;/PRE&gt;&lt;P&gt;I don't want to be &lt;EM&gt;too&lt;/EM&gt; cryptic, but you need to do some of the work here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 21:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568357#M44521</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2017-01-04T21:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages - to PNG using ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568358#M44522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding to Darren's comment, just change the export line to:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExportToPNG&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\Users\" + pageName + "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;png"&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; resolution&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;200&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 06:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-driven-pages-to-png-using-arcpy/m-p/568358#M44522</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-01-23T06:10:32Z</dc:date>
    </item>
  </channel>
</rss>

