Hello saduka,
Can you please provide the full output related to the exportRaster operation?
Actually, I want to report this as a general bug for python scripting. The script runs fine for small projects. Manual compression output through graphic interface works also fine.
However, when a project contains more than 3000 cameras, and the orthomosaic tile scale is larger than 80000x80000, the error jumps out.
The following error report is just one case, which has been the same for all of our large aerial map compression output.
2020-07-10 13:39:10 LoadProject: path = E:/Agisoftprojects/20200526.psx
2020-07-10 13:39:10 Loading project...
2020-07-10 13:39:11 loaded project in 1.746 sec
2020-07-10 13:39:11 Finished processing in 1.755 sec (exit code 1)
2020-07-10 13:39:15 ExportRaster: image_format = JPEG, path = E:/test.tif, projection = WGS 84, save_alpha = off, white_background = off
2020-07-10 13:39:15 generating 91272 x 92998 raster in 1 x 1 tiles
2020-07-10 13:39:15 Exporting orthomosaic...
2020-07-10 13:39:15 Finished processing in 0.01 sec (exit code 0)
2020-07-10 13:39:15 Traceback (most recent call last):
2020-07-10 13:39:15 File "E:/lingang_project/test.py", line 19, in <module>
2020-07-10 13:39:15 projection = d_projection)
2020-07-10 13:39:15 RuntimeError: Can't create image: E:/test.tif
2020-07-10 13:39:15 Error: Can't create image: E:/test.tif
2020-07-10 13:40:29 Found 2 GPUs in 0.407 sec (CUDA: 0.323 sec, OpenCL: 0.084 sec)