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') mapdoc.save() counter = counter + 1 del mxd # i added print (counter)
any help would be great.
Solved! Go to Solution.
Hey,
according to this you can change the dpi value:
Just change add a resolution value.
ExportToJPEG (map_document, out_jpeg, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {jpeg_quality}, {progressive})
Tim
Hey,
according to this you can change the dpi value:
Just change add a resolution value.
ExportToJPEG (map_document, out_jpeg, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {jpeg_quality}, {progressive})
Tim