Hi Paulo,
Thank you for teaching me
I made the code below, but it doesn't work.
What's wrong?
doc = Metashape.app.document
res_x = res_y = 0.0003
BB = Metashape.BBox()
minx = coordinates[ex_path][0]
miny = coordinates[ex_path][1]
maxx = coordinates[ex_path][2]
maxy = coordinates[ex_path][3]
BB.min = Metashape.Vector([minx,miny])
BB.max = Metashape.Vector([maxx,maxy])
BB.size = 2
compression = Metashape.ImageCompression()
compression.tiff_compression = Metashape.ImageCompression.TiffCompressionLZW
compression.tiff_big = True
compression.jpeg_quality = 99
compression.tiff_overviews = True
compression.tiff_tiled = True
chunk.exportRaster(path = ex_path + '.jpg', image_format = Metashape.ImageFormatJPEG,clip_to_boundary=False,
raster_transform=Metashape.RasterTransformNone, region = BB,
resolution_x = res_x, resolution_y = res_y,split_in_blocks = True, block_width = int(wid), block_height = int(pix2),
white_background = True, save_alpha=True, source_data=Metashape.OrthomosaicData, image_compression = compression)