My orthomosaic is currently 25114 x 22819
and I want to export it such that it is only 5000 pixels wide, while maintaining scale.
I tried running chunk.exportRaster(path="test.tif", width=5000)
but it doesn't work and I get RuntimeError: TIFFWriteTile: unexpected error: test.tif
I don't want to explicitly change pixel size as I don't know what size will get me a 5000 pixel wide orthomosaic. I know the GUI has an option 'Max. dimension (pix)'. Is there something similar I can do using the python API?