Rotate Image
Right angles or arbitrary angles. Non-right angles expand the canvas so nothing is clipped.
Result
Output
—
Worked example
Rotating a 400×200 image by 90° gives 200×400. Rotating it by 45° gives roughly 424×424, because the corners sweep out a larger bounding box.
Straightening a photo is the usual reason to rotate by a fractional angle: a scanned page or a hand-held shot is rarely level, and a two-degree correction makes the whole page look intentional.
Why the canvas grows
A rotated rectangle does not fit inside its original bounding box. Either the corners get clipped or the canvas expands — expanding is the correct behaviour, and it is why the output dimensions differ from the input.