<?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: ExportToJPG in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/exporttojpg/m-p/491207#M38428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not entirely sure. I only used ExportToJPEG on Page Layouts, where I didn't need to set the width and height. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess the issue may be with using width and height values not conforming to the ratio of width / height of your visible data frame in ArcMap, and ArcGIS trying to squeeze the display of the data frame in the changed image aspect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g. if the data frame in ArcMap has a width / height size of 640 / 480, so a 4:3 ratio, you may need to use a similar ratio for the export width / height too, e.g. 1600 / 1200.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this is a guess... someone with more Python experience will probably answer your question better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 18:32:39 GMT</pubDate>
    <dc:creator>MarcoBoeringa</dc:creator>
    <dc:date>2014-01-15T18:32:39Z</dc:date>
    <item>
      <title>ExportToJPG</title>
      <link>https://community.esri.com/t5/python-questions/exporttojpg/m-p/491206#M38427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written a python script to automate the export of a data frame to jpg, including a world file so I can use the resulting image in other processes.....&amp;nbsp; (I am consuming an image service that I would like to use for localized image processing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.ExportToJPEG(myMXD, myImage, myDataFrame,4171, 3629,400,True)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I enter the same values (width, height, dpi) and export the data frame manually (via the wizard), I get a lovely clipped image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The export wizard automatically generates the width and height based on the dpi value (400).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the code, the image is narrower than it should be.&amp;nbsp; ( the image is 'squished')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Patty Rueger&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 18:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttojpg/m-p/491206#M38427</guid>
      <dc:creator>PattyRueger</dc:creator>
      <dc:date>2014-01-15T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: ExportToJPG</title>
      <link>https://community.esri.com/t5/python-questions/exporttojpg/m-p/491207#M38428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not entirely sure. I only used ExportToJPEG on Page Layouts, where I didn't need to set the width and height. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess the issue may be with using width and height values not conforming to the ratio of width / height of your visible data frame in ArcMap, and ArcGIS trying to squeeze the display of the data frame in the changed image aspect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g. if the data frame in ArcMap has a width / height size of 640 / 480, so a 4:3 ratio, you may need to use a similar ratio for the export width / height too, e.g. 1600 / 1200.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this is a guess... someone with more Python experience will probably answer your question better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 18:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttojpg/m-p/491207#M38428</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-01-15T18:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: ExportToJPG</title>
      <link>https://community.esri.com/t5/python-questions/exporttojpg/m-p/491208#M38429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check the last scripting output in the help file,&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000038000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00s300000038000000&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;it indeed allows for increased resolution&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 18:52:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/exporttojpg/m-p/491208#M38429</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-01-15T18:52:31Z</dc:date>
    </item>
  </channel>
</rss>

