AnsweredAssumed Answered

Export to jpg

Question asked by yaron148 on Feb 19, 2015
Latest reply on Feb 19, 2015 by timw1984

Hello everyone,

i try to export 10 mxd's  with arcpy and i don't know how to change the dpi from 96 (default) to 196. i using this code:



import arcpy,os,sys,string
import arcpy.mapping
from arcpy import env

env.workspace = r"D:\PROJECTS\nofim\gis"
counter = 0
for mxd in arcpy.ListFiles("*.mxd"):
    print (mxd)
    mapdoc = arcpy.mapping.MapDocument(r"D:\PROJECTS\nofim\gis\\" + mxd)
    arcpy.mapping.ExportToJPEG(mapdoc, r"D:\PROJECTS\nofim\gis\output\\"+os.path.basename(mapdoc.filePath).replace ('.mxd','') +".jpg")
    print ('ExportToJPEG')
    counter = counter + 1
del mxd # i added
print (counter)

any help would be great.