I designed a little arcpy script to export different layers in a data view to jpeg (world files included).
It's the first time I actually use arcpy but it works. The only drawback is that the labels which I set in my mxd, don't come out in the jpeg's as they appeared in the dataview. The labels in my exported jpegs (thus via arcpy) come out very small.
Does anyone know how this can be resolved? I want my jpegs exported with labels, the same way they appeared in the data view. If I adjust the font size in the mxd, nothing happens.
I use Arcmap 10.3 on a Windows 10 laptop.
Below a part of the script which refers to exporting.
if layer.name == "02_GWP_Res": layer.visible = True arcpy.RefreshActiveView() outFile = r"C:\GISlokaal\ArcpyScripts\\" + layer.name + ".jpg" arcpy.mapping.ExportToJPEG(mxd, outFile, df, df_export_width=3200, df_export_height=2300, resolution = 150, world_file=True)