You can rotate the image to compensate for minute tilt. An image is rotated and cropped to the same aspect ratio of the image, and then the rotated image is enlarged to the same size of the image. So, it keeps the number of pixels after a development and prevent to lose a resolution.

before after