Exporting a map to an image file

You can also export the contents of the map or layout view to an image file using one of the many functions provided by arcpy.mapping. Each image export function will differ in name depending upon the type of image file you'd like to create. The parameters passed into the function will also vary slightly.

Getting ready

In addition to providing the ability to export data frames and the page layout to a PDF format, you can also use one of the many export functions provided by arcpy.mapping to export an image file. Available formats include AI, BMP, EMF, EPS, GIF, JPEG, SVG, and TIFF. The parameters provided for each function will vary depending upon the type of image. Some examples of these function names include ...

Get Programming ArcGIS 10.1 with Python Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.