Hello picare,
Can you please check, if the following code works properly for 90-degrees clockwise rotation for exported orthomosaic:
import Metashape
chunk = Metashape.app.document.chunk
ortho = chunk.orthomosaic
w = ortho.width
h = ortho.height
t = ortho.top
b = ortho.bottom
l = ortho.left
r = ortho.right
A = 0
B = (r - l) / w
C = l
D = (t - b) / h
E = 0
F = b
region = Metashape.BBox()
region.min = Metashape.Vector([l, b])
region.max = Metashape.Vector([r, t])
M = Metashape.Matrix([[A, B, C], [D, E, F]])
chunk.exportRaster("D:/ortho-90.jpg", world_transform = M, region = region)