AnsweredAssumed Answered

How to export to PNG with transparent background

Question asked by benvousaime on Aug 12, 2013
Latest reply on Sep 20, 2013 by ksed
Hi there,

I used the following line of code to export an mxd to PNG 8 bit (i am creating tiles)... BUT i cant seem to set the background to transparent (or No Color)... any clue as to what parameter  i should use?!

arcpy.mapping.ExportToPNG(mxd, pngpath, df, df_export_width = 256, df_export_height = 256, resolution = 70, world_file=False, color_mode = "8-BIT_PALETTE", background_color = "No Color", transparent_color = "No Color")


I read on other forum threads that by setting the background color and transparent color to the same value should do the trick... it does not work in my case.

The data-frame background color is set to Hollow...


Any tips would be great :-)

Outcomes