maxWidthHeight:
:
Guide:
1
2 - hori
3 - hori & vert
4 - vert
5 - diag
6 - hori & diag
7 - hori & vert & diag
8 - vert & diag
Horizontal:
Vertical:
Diagonal:
rotate 270
rotate 90
horizontal
vertical
orientation image
dstCanvas
reference image
srcCanvas
auto-orient
dstCanvas2