Select to view content in your preferred language

Exporting Width/Height/Resolution mismatch

429
0
03-13-2023 10:33 AM
Labels (1)
ScottEllis123
New Contributor

I'm having issues with using the exportToTIFF() function in ArcPro. There are 3 relevant parameters: width, height, and resolution.

Width and height are required parameters; they represent "width/height of the export in pixels". I need to export a very high-res image of a layer, but the default resolution is 96dpi. How do I determine the correct resolution? Why ask for the width and height in pixels (which is the resolution), and then have a separate resolution parameter that overrides it?

Code:

# Current Project's view:
mv = aprx.activeView

# Export code:
mv.exportToTIFF(outdir, width = 20000, height = 16000, resolution = 2000)

Output from code: ArcPyTest.png

Desired result: DesiredOutput.png

Tags (3)
0 Kudos
0 Replies