‘I’m sure when you’re rotating an image, there is a keyboard shortcut to use in making that image fit SQUARELY on the canvas. ‘
Go to FILE-AUTOMATIC and choose the appropriate option

Note that with this method you place your picture straight, which isdifferent from the ruler method I mentioned before. That one can be used e.g. to make the horizon straight
Theo