prueger

ExportToJPG

Discussion created by prueger on Jan 15, 2014
Latest reply on Jan 15, 2014 by Dan_Patterson
Greetings,
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.....  (I am consuming an image service that I would like to use for localized image processing)

my code is as follows:

arcpy.mapping.ExportToJPEG(myMXD, myImage, myDataFrame,4171, 3629,400,True)

When I enter the same values (width, height, dpi) and export the data frame manually (via the wizard), I get a lovely clipped image.
The export wizard automatically generates the width and height based on the dpi value (400). 

When I run the code, the image is narrower than it should be.  ( the image is 'squished')
Any thoughts?
Thank you in advance!
Patty Rueger

Outcomes